Vim Tips Wiki  Short mappings for common tasks  1,608pages on
this wiki  Redirected from VimTip720  Tip 979 Printable Monobook
Previous Next  created 2005 · complexity basic · version 7.0
This tip presents suggestions for useful mappings. To qualify,
each mapping should be short and should be useful for a common
task. Other mappings belong in another tip.  This is a
collection of unrelated mappings. You probably can't use all of
them "as-is" at the same time. Assign your own left-hand-side as
you see fit.  Visual mode blockwise indentEdit  This keeps the
current visual block selection active after changing indent with
'<' or '>'. Usually the visual block selection is lost after you
shift it, which is incredibly annoying.  vmap > >gv vmap < <gv
Record into register 'q', playback with 'Q'Edit  Set this map:
nnoremap Q @q  For quick recordings just type qq to start
recording, then q to stop. You don't have to worry about the
name this way (you just named the recording 'q'). Now, to play
back the recording you