NeoVim — Plugin Key Mappings - shirohana/.config GitHub Wiki
| Alias | To |
|---|---|
| <Leader> | Space |
| <LocalLeader> | ; |
| ⌥ | Opt (But we'll still use Opt because ⌥ is unreadable) |
| ⇧ | Shift (But we'll still use Shift because ⇧ is unreadable) |
| ⌃ | Ctrl |
| I | Keystroke | Action |
|---|---|---|
| v | ⌃b | Back insert close pair in fly-mode |
| n | v | o | Keystroke | Action |
|---|---|---|---|---|
| v | v | v | gc | Toggle comment of lines with {motion} |
| v | gcc | Toggle comment of current line | ||
| v | cgc | Change adjacent commented lines |
| n | Keystroke | Action |
|---|---|---|
| v | <LocalLeader>c | Show main menu |
| v | ⌃o | Show listed buffers in current tab |
| v | Opt-w | Load workspace |
| v | Opt-s | Save workspace |
| v | Opt-Shift-w | Create new empty workspace |
| v | Opt-Shift-s | Save as new workspace |
| v | <LocalLeader>= | Rename current tab label |
| n | v | Keystroke | Action |
|---|---|---|---|
| v | ga | Start interactive EasyAlign with {motion} | |
| v | ga | Start live interactive EasyAlign in selection |
| Keystroke | Action |
|---|---|
| <LocalLeader>j | <Plug>(easymotion-sol-j) |
| <LocalLeader>J | <Plug>(easymotion-j) |
| <LocalLeader>k | <Plug>(easymotion-sol-k) |
| <LocalLeader>K | <Plug>(easymotion-k) |
| <LocalLeader>h | <Plug>(easymotion-linebackward) |
| <LocalLeader>l | <Plug>(easymotion-lineforward) |
| Keystroke | Action |
|---|---|
| <LocalLeader>w | <Plug>(easymotion-w) |
| <LocalLeader>W | <Plug>(easymotion-W) |
| <LocalLeader>b | <Plug>(easymotion-b) |
| <LocalLeader>B | <Plug>(easymotion-B) |
| <LocalLeader>e | <Plug>(easymotion-e) |
| <LocalLeader>E | <Plug>(easymotion-E) |
| <LocalLeader>ge | <Plug>(easymotion-ge) |
| <LocalLeader>gE | <Plug>(easymotion-gE) |
| Keystroke | Action |
|---|---|
| <LocalLeader>n | <Plug>(easymotion-n) |
| <LocalLeader>N | <Plug>(easymotion-N) |
| <LocalLeader>Space | <Plug>(easymotion-repeat) |
| N | V | O | Keystroke | Action |
|---|---|---|---|---|
| v | ss | <Plug>(easymotion-sn) | ||
| v | sf | <Plug>(easymotion-fl) | ||
| v | sF | <Plug>(easymotion-Fl) | ||
| v | st | <Plug>(easymotion-tl) | ||
| v | sT | <Plug>(easymotion-Tl) | ||
| v | f | <Plug>(easymotion-fl) | ||
| v | F | <Plug>(easymotion-Fl) | ||
| v | t | <Plug>(easymotion-tl) | ||
| v | T | <Plug>(easymotion-Tl) | ||
| v | f | <Plug>(easymotion-fl-fix) | ||
| v | F | <Plug>(easymotion-Fl-fix) | ||
| v | t | <Plug>(easymotion-tl-fix) | ||
| v | T | <Plug>(easymotion-Tl-fix) |
| N | Keystroke | Action |
|---|---|---|
| v | ⌃o | Show buffers (only available when CtrlSpace disabled) |
| v | ⌃p | Show files in cwd
|
| v | Opt-f | Search text in cwd
|
| N | Keystroke | Action |
|---|---|---|
| v | sj | Jump to next hunk |
| v | sj | Jump to previous hunk |
| v | <LocalLeader>sa | Refresh GitGutter signs |
| v | <LocalLeader>ss | Stage hunk under cursor |
| v | <LocalLeader>su | Unstage hunk under cursor |
| v | <LocalLeader>sr | Undo hunk under cursor |
| v | <LocalLeader>sSpace | Preview hunk under cursor |
| N | V | Keystroke | Action |
|---|---|---|---|
| v | v | / | Search pattern with highlight |
| v | v | ? | Search pattern back with highlight |
| v | v | g/ | Search pattern but stay cursor when cancel |
| v | v | z/ | Fuzzy search |
| v | v | z? | Fuzzy search back |
| v | v | zg/ | Fuzzy search and stay when cancel |
| N | MultiCursorMode |
Keystroke | Action |
|---|---|---|---|
| v | ⌃n | Start multiple cursor mode on current word | |
| v | ⌃n | Join this word and jump to next | |
| v | ⌃x | Skip current word and jump to next | |
| v | ⌃b | Undo previous join or skip | |
| v | Esc | Leave MultiCursorMode
|
| N | Keystroke | Action |
|---|---|---|
| v | Opt-; | Toggle NERDTree |
| N | I | V | Keystroke | Action |
|---|---|---|---|---|
| v | " | Peek register and do (e.g. "4p, "ay) |
||
| v | " | Peek register and do | ||
| v | ⌃r | Peek register and paste selected |
| N | Keystroke | Action |
|---|---|---|
| v | gS | Split oneline into multiple lines |
| v | gJ | Join multiple lines into oneline |
| N | V | Keystroke | Action |
|---|---|---|---|
| v | cs | Change surround (e.g. cs]{, cs`<kbd>) |
|
| v | cS | Change surround block (e.g. cS}}) |
|
| v | ds | Remove surround | |
| v | ys | You surround with {motion} (e.g. ysiw", ysap<script>) |
|
| v | yS | You surround block with {motion} | |
| v | yss | You surround current line | |
| v | ySS | You surround block of current line | |
| v | S | Surround selection | |
| v | gS | Surround block of selection |
| N | Keystroke | Action |
|---|---|---|
| v | U | Toggle UndoTree |
| N | V | O | Keystroke | Action |
|---|---|---|---|---|
| v | v | v | [[ | Jump to previous title |
| v | v | v | ]] | Jump to next title |
| v | Enter | Open markdown preview on Safari (grip required) |