Skip to content

Instantly share code, notes, and snippets.

@romulomourao
Last active February 20, 2017 17:10
Show Gist options
  • Save romulomourao/31328b55853f19d9e4c6effaf58302fa to your computer and use it in GitHub Desktop.
Save romulomourao/31328b55853f19d9e4c6effaf58302fa to your computer and use it in GitHub Desktop.

NORMAL MODE

  • ^E - scroll window down
  • ^Y - scroll window up
  • ^F - down one page
  • ^B - up one page
  • H - top of the window
  • M - middle of the window
  • L - bottom of the window
  • gg - top of file
  • G - bottom of the file
  • w - goes to the begin of next word
  • e - goes to the end of the next word

Motions


a - all

i - in

t - 'til

f - find forward

F - find backward


  • caw - change all word
  • diw - delete in word
  • va" - Visually select All inside "
  • dd / yy - delete/yank current line
  • D / C - delete / change until the end of line
  • ^ / $ - move to the beginning / end of line
  • I / A - move to the beginning/end of line and insert
  • o / O insert new line below/above current line and insert

Macros

q{register} - start recording (do the things) q - stop recording

@{register} - play a macro (register can be any letter)

Plugins

  • vundle
  • nerdtree
  • t - open file in new tab
  • i - open file horizontal window
  • s - open file vertical window
  • m - see list os commands
  • ^ww - navigate between panels
  • ^w (hjkl) - navigate*
  • gt / gT - navigate tabs
  • ctrlp - file finder
  • fugitive - git tool
  • syntastic - syntax linter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment