vim edit - RawIron/rawiron.github.io GitHub Wiki

highlight lines

Use v to get into visual character mode.

<shift-v>  " will highlight the entire line.
<ctrl-v>   " will take you into visual block mode so you can highlight columns.

cursor movement

cursor position list history movements

:jumps   " list jumps

<ctrl-i> " previous jump
<ctrl-o> " next jump

change list history movement

:changes   " list changes

g;     " previous change
g,     " next change

marks

:marks     " list marks

m{a-zA-Z}  " mark position
'{a-zA-Z}
`{a-zA-Z}  " jump to position

move line under the cursor to the top, bottom, center of window

zt
zb
z.

manipulations

redo a change

<ctrl-r>

repeat

" last change
.

" last ex command
@:

" last register
@@

registers

choose a register with "

There are several special registers.

clipboard register is +

paste register +
"+p

yank line into register +
"+yy
⚠️ **GitHub.com Fallback** ⚠️