Cheatography
https://cheatography.com
Custom cheatsheet for Spacemacs and Python
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Editing
Ctrl + r |
Undo Redo |
SPC a u |
Undo Tree |
SPC ; |
Comment region |
g c c |
Comment line |
J |
Join lines |
Selection
v i i |
region by indentation |
SPC [v V r] |
region [expand contract reset] |
SPC t n r |
Toggle line numbers |
Python
SPC m g g |
Go to definition |
SPC m g b |
Go back from definition |
SPC m v w |
Activate venv |
SPC m t a |
Run all tests |
SPC m t m |
Run tests in buffer |
SPC m t t |
Run test function |
SPC m h h |
Function help |
|
|
Windows
SPC w m |
maximize |
SPC w [- /] |
split [horizontal vertical] |
SPC w [h l k j] |
switch to [left right up down] |
SPC w C |
close other |
SPC w w |
cycle |
Project
SPC p f |
Search file |
SPC p p |
change project |
SPC p t |
NeoTree |
Magit
SPC g s |
Go to magit |
S |
Stage all files |
c c |
Commit staged files |
p u |
Push to origin |
F |
Pull |
u |
Unstage file |
l l |
Open log |
|
|
Navigation
SPC / |
search in project |
/ |
Vim search |
SPC s s |
Search in buffer |
Ctrl + o |
Jump Back |
SPC TAB |
switch to alternate |
Files
SPC f S |
save all |
SPC f R |
rename |
SPC f d |
delete |
SPC f f |
Create new file |
Shell
SPC ' |
Open Shell |
Ctrl + x 0 |
Kill shell |
Buffers
SPC b b |
switch buffer |
SPC b k |
kill current buffer |
|