Skip to content

Instantly share code, notes, and snippets.

@underhilllabs
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underhilllabs/9511766 to your computer and use it in GitHub Desktop.
Save underhilllabs/9511766 to your computer and use it in GitHub Desktop.
vim favorites

Key bindings I use a lot

Paste register contents while in insert mode

C-r" Paste most recent selection at cursor while in insert mode

copy a function name with yw, then enter search with / and copy the yanked function name into search with C-r"

Undo/Redo

u undo last action
C-r redo

Scroll Current Line with ‘z’

zz Scroll current line to center of screen
zt Scroll current line to top of screen
zb Scroll current line to bottom of screen

Jump Cursor

H cursor jump to top line of Screen
M cursor jump to middle line of Screen
L cursor jump to last line of Screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment