-
SPC b b
- Helm mini; lists buffers & recent filesCTRL SPC
- Mark ItemsCTRL z
- Actions
-
SPC b B
- ibuffer -
SPC f f
- open filesCTRL h
- up a folderCTRL l
- open a folderCTRL j
- upCTRL k
- down
-
SPC p f
- opens root of project -
SPC p p
- opens projects -
SPC /
- searches through project -
SPC s s
- search in a file -
SPC s l
- find all function definitons in a file -
SPC v
- expand region -
SPC V
- contract region -
s (
- put parens around a region -
SPC s e
- multiple cursorsn
- jumpN
- jump
-
SPC h d
- help describe -
SPC h d f
- help describe functions -
SPC h d v
- help describe variables -
SPC f e h
- help -
ALT /
- snippet completion -
SPC t s
- syntax checking -
SPC e
- syntax checking options -
SPC a r
- ranger -
SPC a d
- deer
[e
- Move line up]e
- Move line down[SPACE
- Insert space above]SPACE
- Insert space below[p
- Paste above current line]p
- Paste below current line
grm
- make-all-cursorsgru
- undo-all-cursorsgrs
- pause-cursorsgrr
- resume-cursorsgrf
- make-and-goto-first-cursorgrl
- make-and-goto-last-cursorgrh
- make-cursor-hereM-n
- make-and-goto-next-cursorgrN
- skip-and-goto-next-cursorM-p
- make-and-goto-prev-cursorgrP
- skip-and-goto-prev-cursorC-n
- make-and-goto-next-matchgrn
- skip-and-goto-next-matchC-t
- skip-and-goto-next-matchC-p
- make-and-goto-prev-matchgrp
- skip-and-goto-prev-match
Useful Spacemacs commands
SPC q q - quit SPC w / - split window vertically SPC w - - split window horizontally SPC 1 - switch to window 1 SPC 2 - switch to window 2 SPC w c - delete current window SPC TAB - switch to previous buffer SPC b b - switch buffers SPC f f - find a file SPC f s - save a file (:w also works) SPC p p - open project SPC p h - find a file in current project SPC b d - kill current buffer SPC b M - move buffer to another window SPC v - enter expand-region mode Useful Vim key bindings
0 - beginning of line ^ - beginning of non-whitespace $ - end of line 9j - move down 9 lines w - move forward by word b - move backward by word gg - first line G - last line C-u - up half page C-d - down half page f/ - move forward to first "/" character t/ = move forward right before the first "/" character ; - repeat that command again H - head of the screen M - middle of the screen L - last of the screen } - move forward by paragraph or block { - move backwards by paragraph or block
-
- search for word under the cursor n - search again forward N - search again backwards
/ - search forward ? - search backward % - find matching brace, paren, etc ma - mark a line in a file with marker "a" `a - after moving around, go back to the exact position of marker "a" 'a - after moving around, go back to line of marker "a" :marks - view all the marks '' - go to the last place you were
x - delete char under cursor X - delete char before cursor A - add to end of line I - insert at the beginning of the line dd - delete line D - delete from cursor to end of line di' - delete text inside single quotes yy - copy line Y - copy from cursor to end of line cc - change line C - change from cursor to end of line cit - change text inside html tag ci' - change text inside single quotes ci{ - change text inside curly brackets. ci... - etc p - paste after cursor P = paste before cursor o - add line below O - add line above . = repeat last comment r - replace character R - replace. (overwrite) (good for columns of text) J - join line (cursor can be anywhere on line)
v - visual char mode V - visual line mode C-v - block visual mode
SPC w c has been replaced by SPC w d