Skip to content

Instantly share code, notes, and snippets.

@lazypower
Created June 17, 2012 06:49
Show Gist options
  • Save lazypower/2943740 to your computer and use it in GitHub Desktop.
Save lazypower/2943740 to your computer and use it in GitHub Desktop.
Vim Cheatsheet

###Working with multiple files

:e filename - Edit a file in a new buffer

:bnext (or :bn) - go to next buffer

:bprev (of :bp) - go to previous buffer

:bd - delete a buffer (close a file)

:sp filename - Open a file in a new buffer and split window

ctrl+ws - Split windows

ctrl+ww - switch between windows

ctrl+wq - Quit a window

ctrl+wv - Split windows vertically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment