UP | HOME

VIM Commands learned

– move the windows
CTRL-W K move window to the top
CTRL-W H move window to the far left
CTRL-W J move window to the bottom
CTRL-W L move window to the far right

– Editing Mulitple Files

forth between two files easily
you could save a second version of the file letter with the command: :w %.new
With the CTRL-O and CTRL-I command you
can go to cursor positions before older jumps, and back again.

– Registers
[“x]yy Copy line into register x
How to type(type four characters one by one):”xyy

– Mark
m x Mark current position with x (x can be any letter). See ’help mark’

– Parse select content to search
Yank the selected content; start search by type /; Ctrl-r with ”