My gvimrc contains a very useful (in
my opinion) default configuration for modifying code of various types
(Python, SQL, C, etc.). Please refer to the comments in the script itself
for details.
Macros
move to first line to paste below
qa
(start recording macro "a")
gp
(paste text below, leave cursor on line after new text)
q
(stop recording macro)
25@a
(repeat macro "a" 25 times)
Copying blocks (as opposed to lines)
Ctrl-v to start visual block mode selection
(use Ctrl-q in windows mode when ctrl-v is mapped to "paste")