
1. project
1.1. SPC p t -> Neotree at project root
1.2. spc pf -> find file in project
2. shortcuts
2.1. spc : -> fuzzy find commands
2.2. spc bb -> list buffers and recent files
2.3. spc j J -> jump to char
2.4. SPC j w -> Jump to word starting with given char
2.5. spc ss ->find but show result in fuzzy list
2.6. SPC f R -> Rename current buffer file
2.7. SPC t n -> Toggle line numbers
2.8. SPC t r -> Toggle relative line numbers
2.9. SPC f e d -> Open spacemacs conf file
2.10. SPC r y -> view your yank ring
3. help
3.1. spc h spc -> help
4. Find and replace
4.1. 12.8.12 Replacing text in several files Replacing an occurrence of text in several files can be performed via helm-ag. Say you want to replace all foo occurrences by bar in your current project: initiate a search with SPC / enter in edit mode with C-c C-e go to the occurrence and enter in iedit state with SPC s e edit the occurrences then leave the iedit state press C-c C-c
4.2. dired
4.2.1. SPC a d -> enter dired mode
4.2.2. wdired-change-to-wdired-mode this will enable you to edit file lists as if it was a file. Use C-c C-c to commit your changes
4.3. Move the cursor to the word to be changed. Press * to select all occurrences. Press e to edit in edit-mode. Press c i w to change the word. Finally press ESC ESC to exit to normal-mode.
4.4. SPC sf -> search for a file within a folder/directory
4.5. SPC / --css search-term -> search css files in project for "search-term"
4.6. SPC * Foo !bar -> search project for a "Foo" and not "bar"
5. narrow (only edit a section of a file)
5.1. SPC n r -> narrow to region
5.2. SPC n w -> widen
6. To try
6.1. http://spacemacs.brianthicks.com/2015/10/01/align-multiple-text-items/
7. Indirect Buffer
7.1. C-x 4 c
7.2. clone-indirect-buffer-other-widow
8. helm
8.1. C-z -> available actions in helm
8.2. SPC rl -> resume last helm session
8.3. C-o in helm opens a file in another window
9. diff
9.1. select files in buffer using SPC SPC then C-c = to enter ediff
10. coding
10.1. SPC ; -> place comment block around selection
10.2. SPC a u -> Undo tree visualize
10.3. SPC c y -> create a commented copy of the current line
10.4. To surround anything, just select it and press s
11. files
11.1. SPC f c -> Copy current buffer into a new file
11.2. SPC f f -> open a file or create a new one if it doesn't exist.
11.3. SPC f D -> Delete the current file in the buffer
12. vim shortcuts
12.1. change
12.1.1. in
12.1.1.1. ci" - change in " ci{ - change in { ci) - change in ) cip - change in p ciw - change in w ci' - change in '
12.1.2. around
12.1.2.1. ca" - change around " ca{ - change around { ca) - change around ) cap - change around p caw - change around w ca' - change around '
12.1.3. till
12.1.3.1. ct" - change around " ct{ - change around { ct) - change around ) ctp - change around p ctw - change around w ct' - change around '
12.2. select
12.2.1. vi" - select in " vi{ - select in { vi) - select in ) vip - select in p viw - select in w vi' - select in ' o - toggle position o start or end of selection
12.3. move lines
12.3.1. select lines in visual mode
12.3.1.1. :m
13. git
13.1. SPC gs - git status
13.1.1. From the git status window
13.1.1.1. s - stage files
13.1.1.2. u - unstage files
13.1.1.3. x - delete file
13.1.1.4. dd - diff
13.1.1.5. ds - diff staged
13.1.1.6. du - diff unstaged
13.1.1.7. cc - commit
13.1.1.8. Pp - Push orignin/branch_you_are_on
13.1.1.9. ll - git log