Skip to content

Instantly share code, notes, and snippets.

@bluenex
Created September 27, 2015 17:33
Show Gist options
  • Save bluenex/27f91637208633fef292 to your computer and use it in GitHub Desktop.
Save bluenex/27f91637208633fef292 to your computer and use it in GitHub Desktop.
Vim with spf13 cheat sheet

VIM NOTE

Vim with spf13 cheat sheet

Keys description
i insert before the cursor
I insert at start of line
a insert after the cursor
A insert at start of line
o insert line below
O insert line above
u undo
C-r redo
v visual mode
C-v visual block
V visual line
enter enter visual line with block selected
y yank
esc / C-c back to normal mode
h move cursor to the left
j move cursor down
k move cursor up
l move cursor to the left
d / x delete
p paste
r replace char at cursor
s replace and continue insert
/ search forward
? search backward
Windows description
:vsplit / C-w v split window vertically
:split / C-w s split window horizontally
C-w C-w cycle through windows
:q quit window
:b number open buffer number
:bn move to next buffer
:bp move to previous buffer
:bd delete current buffer
:bw wipe out buffer (clean store)
:bp|bd # / :bn|bd # delete buffer without closing window
Combos description
ggVG select all
ggVGy yank all
ggguG make all text lowercase
Commands description
:noh clear highlighted
:%y+ yank all
:e filename openfile
, e open NERDTree
  • - ⌃ - Control Key symbol
  • - ⌘ – Command Key symbol
  • ⌥ – Option Key symbol
  • ⇧ – Shift Key symbol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment