Skip to content

Instantly share code, notes, and snippets.

@mloskot
Last active December 16, 2015 15:28
Show Gist options
  • Select an option

  • Save mloskot/5455782 to your computer and use it in GitHub Desktop.

Select an option

Save mloskot/5455782 to your computer and use it in GitHub Desktop.
List of useful Vim shortcuts

Basic VIM

  • http://www.thegeekstuff.com/2009/03/8-essential-vim-editor-navigation-fundamentals/

  • Open new horizontal split :sp file

  • Open new vertical split :vs file

  • Switch between split pane: Ctrl-w + { h|j|k|l }

  • Rotate pane down/right: Ctrl-w + r

  • For more, see Vim documentation: windows

  • :tag [identifier] Jump to the identifier

  • :tags List the tag stack

  • Control-] Jump to the tag under the cursor

  • :tselect Select which tag location to go to for the current tag

  • Control-t Jump back from the current tag

  • :stjump [identifier] Jump to the identifier in a new split window

Plugins

FuzzyFinder

  • Open in vertical split: Ctrl-k
  • Open in horizontal split: Ctrl-j

NERDTree

  • Open in vertical split: s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment