Re:What is your most productive shortcut with Vim?
by johncoltrane on Sunday October 20, 2013 @09:53AM
(#6579881)
Search/replace the word under the cursor in the current paragraph (for <leader>r) or the whole buffer (for <leader>R). Beats the crap out of "multiple cursors" in the typical "change a variable name" example:
Another approach of the typical "multiple cursors" example, using the beautiful gn command. Hit ,x to "change" the word under the cursor then <Esc> and repeat for the next occurrences with the dot (or n to skip):
Move to next and previous quickfix error:
Traverse the buffer list effortlessly:
In my lightweight "noplugin" vimrc (used on remote machines) I have these as well:
Beside all those custom mappings, macros, Ex commands, motions, text-object and in general the whole "grammar" that ties everything are killer features.
[ Parent
| on HN ]
There are no comments on this comment yet.