Vim’s visual block mode is a feature that I hardly ever use but is extremely useful when I do need it.
You can highlight a column of text or numbers in the center of a page and perform various edit operations on that text. It is unbelievably powerful and I realize on writing this that I only use a fraction of the blockwise possibilities.
You enter Visual Blockwise mode with Control V however I uses that for Paste so have it remapped to Control Q
” Visual is the newest and usually the most intuitive editing mode
” Visual basics
v : enter visual mode
V : visual mode whole line
gv : reselect last visual area (ultra)
o : navigate visual area
“*y or “+y : yank visual area into paste buffer [C]
V% : visualise what you match
V}J : Join Visual block (great)
V}gJ : Join Visual block w/o adding spaces
`[v`] : Highlight last insert
:%s/\%Vold/new/g : Do a substitute on last visual area [N]
:help blockwise-visual