Show Menu
Cheatography

spacemacs basics Cheat Sheet by

Files

SPC f
Show files menu
SPC f f
Find and open file
Show directory in dired
SPC f s
Save current buffer
SPC f t
NeoTree toggle
SPC f R
Rename current buffer file

Projects

SPC p
Show projects menu
SPC p p
Open recent project
SPC p f
Current project files
SPC p b
Current project buffers
SPC p t
Neotree at project root
SPC p k
Kill all project buffers
A project is remembered when you first open a file (with
SPC f f
) from a directory that is on version control. If you want make an ordinary directory into a project, just add a file called
.proje­ctile
at the root directory.

Font size

SPC z x
Enter font size micro state for current window
SPC z f
Enter font size micro state for all windows
 

Buffers

SPC b
Show buffers menu
SPC b b
Show buffers and recent files
SPC b d
Kill current buffer
SPC TAB
Switch to last buffer

Toggles

SPC t
Show toggles menu
SPC t a
Toggle auto completion
SPC t c
Toggle camel case motion
SPC t F
Toggle auto fill mode
SPC t n
Toggle line numbers
SPC t r
Toggle relative line numbers
SPC t s
Toggle syntax checking
SPC t l
Toggle line wrap (truncate lines)

Code folding

z r
Open all folds
z m
Close all folds
z a
Toggle current fold
z o
Open current fold
z c
Close fold
 

Windows

SPC w
 
Show windows menu
SPC 0
 
Focus neotree window
SPC 1..9
 
Focus window 1 to 9
SPC w w
 
Focus next window
SPC w -
SPC w s
Split window below
 
SPC w S
Split window below and focus new window
SPC w /
SPC w v
Split window right
 
SPC w V
Split window right and focus new window
SPC w c
 
Delete­(close) window
SPC w m
 
Maximize buffer
SPC w u
 
Undo window layout change

Windows micro state

SPC w .
Enter windows micro state
?
Help
[
Shrink horizo­ntally
]
Enlarge horizo­ntally
{
Shring vertically
}
Enlarge vertically
Most regular window commands will work here without the prefix, for example 0 to 9 will focus on the respective window; s and v will split; h, j, k and l will move focus; etc.
 

Comments

Hi, my suggestions:

buffers
SPC TAB Switch to last buffer

files
SPC f R Rename current buffer file

windows
SPC 0 Focus neotree
SPC 1 ... 9 Go to window
SPC w u Undo window layout change
SPC w w Go to next window
These took me a long time to find and I like them more than the standard splits:
SPC w S Split window below and move to new window
SPC w V Split window right and move to new window

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Spacemacs (+Clojure) Keyboard Shortcuts
          spacemacs-org Cheat Sheet

          More Cheat Sheets by logcat