-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A page in Spacemacs Basic that defines keybinding that each drive a menu of very useful commands and transient states.
- Loading branch information
1 parent
16ad893
commit e41f678
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Spacemacs Vim | ||
|
||
> ####TODO::Work in progress | ||
> Adding neat things Spacemacs adds to the vim experience here, as I learn them. Here are a few powerful menus for vim normal state. | ||
|
||
## The power of g | ||
|
||
`g` in Vim normal mode brings up a menu of neat shortcuts | ||
|
||
|
||
[![Spacemacs Vim Normal - g menu](/images/spacemacs-vim-normal-g-menu.png)](/images/spacemacs-vim-normal-g-menu.png) | ||
|
||
I mainly use this for changing the case of letters, e.g.: | ||
|
||
`v` to select the characters I want to change | ||
`g` for the menu | ||
`u` or `U` to change to lower or upper case | ||
|
||
|
||
|
||
|
||
|
||
## `#` or `*` to navigate by words / symbols | ||
|
||
`#` or `*` enters **symbol highlight transient state** allowing you to jump between the current symbol name and any other instance in the buffer. | ||
|
||
|
||
[![Spacemacs Vim Normal - Symbol highlight transient state](/images/spacemacs-vim-normal-symbol-highlight-transient-state.png)](/images/spacemacs-vim-normal-symbol-highlight-transient-state.png) | ||
|
||
|
||
`e` to start iedit state and edit all the symbols concurrently. This is so amazing. | ||
|
||
|
||
`/` will show a helm popup with all the instances of the symbol through out the project files, a quick way to search a project. | ||
|
||
|
||
`f` will show a helm popup with all the instances of the symbol in a specified file. | ||
|
||
`b` will show a helm popup with all the instances of the symbol through out all open buffers (global buffers, so even those in a different layer). | ||
|
||
|
||
## `z` for Code Folding etc. | ||
|
||
Code folding is a handy way to hide parts of you code and comments you are not currently interested in. | ||
|
||
`z` opens a menu to allow you to un/fold your code quickly. | ||
|
||
|
||
[![Spacemacs Zoom menu](/images/spacemacs-vim-normal-z-menu.png)](/images/spacemacs-vim-normal-z-menu.png) | ||
|
||
`SPC z .` is the code fold transient menu should you wish to un/fold code many times. | ||
|
||
See the [code folding](/navigating-code/code-folding.html) section for more details. |