This is a draft cheat sheet. It is a work in progress and is not finished yet.
Editing
SPC n [f w] |
narrow to function/whole |
J |
join line with next one |
C |
change rest of line |
R |
replace text until ESC |
xp |
swap characters |
X |
delete backward |
D |
delete to end of line |
~ |
change case |
cs{from_char}{to_char} |
change surrounding |
ds{char} |
delete surrounding |
ysiw{char} |
surround word |
yss |
surround line |
SPC j= |
indent buffer |
Windows/Buffers
SPC ww |
cycle windows |
SPC w+arrow |
switch to left/right/up/down |
SPC b n/p |
next/previous buffer |
SPC w r |
rotate windows forward |
SPC w R |
rotate windows backwards |
SPC w u |
undo window layout |
SPC t g |
toggle golden ratio |
|
|
Selection
vii |
region by indentation |
Errors
SPC e n |
next error |
SPC e p |
previous error |
SPC c d |
kill compilation window |
|
|
Navigation/Searching
:n |
jump to line number n |
C-f |
forward one screen |
C-b |
back one screen |
#/* |
search for word under the cursor |
mm |
set mark m |
'm |
goto mark m |
mM |
set mark M across buffers |
`M |
go to mark M |
'' |
go back to line where jumped from |
`' |
jump to last change |
:marks |
list all current marks |
Jumps
SPC j b |
undo a jump |
SPC j d |
listing of the current directory |
SPC j D |
listing of the current directory (other window) |
SPC j i |
jump to definition |
SPC j k |
next line and indent it |
|