Simple Vim commands you wish you'd known earlier
vimtext-editorkeyboard-shortcutsvisual-blocktips
Abstraction: Stack Overflow thread of underappreciated Vim productivity commands
Key points:
- Visual Block mode (
Ctrl+V, orCtrl+Qon Windows) enables column-level editing:I text Escinserts text in front of every line in the block;A text Escappends after every line - Visual Block mode also allows deleting columns with
dand toggling case with~across all selected lines simultaneously - Particularly useful for batch-renaming symbolic constants or aligning code columns without external tools
- Highlighted as a time-saving alternative to manual line-by-line edits when refactoring structured text
Connections: Vim · Stackoverflow · Vim · Text Editor
Source: http://stackoverflow.com/questions/1276403/simple-vim-commands-you-wish-youd-known-earlier