Created
February 28, 2012 16:26
-
-
Save awagner83/1933467 to your computer and use it in GitHub Desktop.
Helpful vim things I don't yet have muscle-memory for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Display | |
zz " set current line at center of window | |
" Tabs and windows | |
^W T " move the current window to a new tab | |
" Jumping | |
gd " go to local declaration | |
^O " go to one position older in jump list | |
^I " go to one position newer in jump list | |
" Searching (external files) | |
:grep pattern file_or_path | |
:cl " show list of matches | |
:cw " open window with list of matches (can be used like file explorer) | |
:cn " show next entry in the quick-fix list | |
:cp " show the previous entry in the quick-fix list | |
" Command writing | |
Ctrl+R 0 " Paste the last yanked text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment