Spacemacs is a community-driven Emacs distribution that combines the ergonomics of Vim with the extensibility of Emacs.
Leader Key Navigation (SPC)
Spacemacs uses SPC as the default leader key in Vim normal mode.
Prefix Categories
| Key Sequence | Domain / Category |
|---|---|
SPC f |
File operations |
SPC p |
Project commands (Projectile) |
SPC b |
Buffer management |
SPC w |
Window management |
SPC s |
Search and grep |
SPC g |
Git operations (Magit) |
SPC h |
Help and documentation |
SPC q |
Quit and session controls |
File Operations (SPC f)
| Shortcut | Action |
|---|---|
SPC f f |
Find file (helm / ivy file browser) |
SPC f s |
Save current file |
SPC f r |
Recent files list |
SPC f t |
Toggle file tree (Neotree / Treemacs) |
SPC f y |
Show current file path |
Buffer Management (SPC b)
| Shortcut | Action |
|---|---|
SPC b b |
Switch buffer |
SPC b d |
Delete / kill buffer |
SPC TAB |
Switch to last active buffer |
SPC b n |
Next buffer |
SPC b p |
Previous buffer |
Window Layouts (SPC w)
| Shortcut | Action |
|---|---|
SPC w / |
Split window vertically |
SPC w - |
Split window horizontally |
SPC w h/j/k/l |
Move focus to left/bottom/top/right window |
SPC w d |
Close current window |
SPC w = |
Balance all window sizes |
Projects and Version Control
| Shortcut | Action |
|---|---|
SPC p f |
Find file in project |
SPC p p |
Switch active project |
SPC g s |
Open Magit status screen |
SPC s p |
Grep / search text across project |