Cheatography
https://cheatography.com
*** Warning!! These are CUSTOMIZED, NON-STANDARD Spacemacs Keybindings. Use at your own risk! ***
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Basic Operation
SPC |
Command Prefix |
ESC |
Cancel |
fd |
Cancel |
C-x |
Prefix for emacs commands |
SPC u |
Universal argument |
C-c |
Mode-specific key bindings |
C-g |
|
SPC o |
Reserved for user commands |
SPC m o |
Reserved for user commands |
Normal Mode Navigation
k |
move line down |
l |
move line up |
j |
move char left |
; |
move char right |
h |
beginning of line ('evil-beginning-of-line`) |
' |
end of line ( evil-end-of-line
) |
C-d |
Scroll down 1/2 page |
C-f |
Scroll down 1 full page |
C-u |
Scroll up 1/2 page |
C-b |
Scroll up 1 full page |
gg |
Move to beginning of buffer |
G |
Move to end of buffer |
SPC jj |
Avy jump to char |
SPC jl |
Avy jump to line |
g ; |
Go to last change |
Clojure(script)
SPC k H |
Backward Sexp |
SPC k L |
Forward Sexp |
SPC k U |
Up Sexp |
SPC k r |
Raise Sexp |
SPC k D (s:symbol w:word x:sexp) |
Delete Backwards micro state |
, s c |
Cider connect |
C-c M-n |
Set repl ns |
SPC m s B |
send and eval buffer and switch to REPL in insert state |
, s s |
Switch to REPL |
, s f |
Send function to REPL |
, s B |
Send buffer to REPL and focus |
, s e |
Send last sexp to REPL |
, f b |
Cider format buffer |
ysiW] |
wrap WORD with ] |
, g g |
jump to source |
, h h |
jump to documentation |
SPC j = |
Indent region or buffer |
C-c C-c |
Cider eval defun at point |
C-c C-e |
Cider eval last sexp |
|
|
Movement by Object (Normal Mode)
w |
move forward word |
b |
move back word |
e |
move to end of word |
f<char> |
move forward to next char |
% |
move to matched brace |
Editing Text (Normal Mode)
i |
Enter Insert Mode |
I |
Enter Insert Mode (begin of line) |
r |
replace char |
x |
delete char |
d |
delete (use with object) |
c |
change (use with object) |
y |
yank / copy |
yy |
copy line (yank line) |
yyp |
duplicate line |
dd |
delete current line |
p |
paste |
Magit
SPC g s |
Magit status |
j / k |
Navigate up / down |
TAB |
expand / collapse diff |
b b |
checkout branch |
b c |
create branch |
f p |
fetch from remote |
f P |
pull from remote |
s |
stage changes (on a file) |
u |
unstage changes (on a file) |
x |
discard changes (on a file) |
c c |
commit staged changes |
, c |
complete commit |
|
|
Visual Mode
SPC v |
Expand region (v to expand) |
Help
SPC h SPC |
Spacemacs docs (helm) |
SPC h d b |
Describe bindings (helm) |
SPC h d f |
Describe function |
SPC h d v |
Describe variable |
SPC h d k |
Describe a key ('K' for keymap) |
SPC h k |
Show top level bindings |
SPC h m |
Search avail man pages |
Windows
SPC b d |
Kill buffer |
SPC w c |
Close window |
SPC w C |
Delete other window |
SPC <number> |
Go to window <number> |
SPC w s |
Horizontal split |
SPC w v |
Vertical split |
SPC w V |
Vertical split and focus new window |
SPC w SPC |
Select windows with ace-window |
SPC w . |
window microstate |
SPC w u |
Winner mode undo |
Buffers
SPC TAB |
Alternate buffer in current window |
SPC b b |
Switch buffer (helm) |
SPC b d |
Kill buffer |
SPC b k |
Kill a buffer |
SPC b M |
Swap windows |
SPC b n |
Switch buffer (avoid specials) |
SPC b s |
Switch to scratch buffer |
SPC b Y |
Copy whole buffer |
SPC b . |
Buffer micro state |
|