Show Menu
Cheatography

Spacemacs Pro Tips Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Editing

SPC n [f w]
narrow to functi­on/­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{fr­­om_­­ch­a­r­}{­­to_­­char}
change surrou­nding
ds{char}
delete surrou­nding
ysiw{char}
surround word
yss
surround line
SPC j=
indent buffer

Window­s/B­uffers

SPC ww
cycle windows
SPC w+arrow
switch to left/r­igh­t/u­p/down
SPC b n/p
next/p­revious 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 indent­ation

Errors

SPC e n
next error
SPC e p
previous error
SPC c d
kill compil­ation window
 

Naviga­tio­n/S­ear­ching

: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