Leader key: ,
| Key | Action |
|---|---|
<Leader>. |
Fuzzy find files (fzf) |
<C-p> |
Fuzzy find files (alternative) |
<Leader>, |
Browse buffers |
<Leader>a |
Search in files (ripgrep) |
<C-g> |
Toggle NERDTree |
| Key | Action |
|---|---|
<Leader>gd |
Git diff |
<Leader>gb |
Git blame |
[h |
Previous git hunk |
]h |
Next git hunk |
| Key | Action |
|---|---|
gd |
Go to definition |
gy |
Go to type definition |
gi |
Go to implementation |
gr |
Find references |
K |
Show documentation |
<Leader>rn |
Rename symbol |
| Key | Action |
|---|---|
[g |
Previous LSP diagnostic |
]g |
Next LSP diagnostic |
[e |
Previous ALE error |
]e |
Next ALE error |
<Leader>qf |
Quick fix current issue |
| Key | Action |
|---|---|
<Leader>F |
Format selected code |
<Leader>s |
Substitute (abolish.vim) |
gc |
Toggle comment (commentary) |
Y |
Yank to end of line (like D, C) |
| Key | Action |
|---|---|
<Tab> |
Next completion / trigger |
<S-Tab> |
Previous completion |
<CR> |
Accept completion |
<C-Space> |
Trigger completion |
<C-@> |
Trigger completion (terminal) |
| Key | Action |
|---|---|
<Leader>b |
Buffer surf back |
<Leader>f |
Buffer surf forward |
| Key | Action |
|---|---|
<S-u> |
Toggle undotree |
| Key | Action |
|---|---|
<Leader>t |
Open tagbar |
<Home> |
Previous tag |
<End> |
Next tag |
| Key | Action |
|---|---|
<PageDown> |
Next location |
<PageUp> |
Previous location |
| Key | Action |
|---|---|
\= |
Align on = |
\: |
Align on : |
\> |
Align on => |
\, |
Align on , |
\{ |
Align on { |
| |
Align on | |
\& |
Align on & or \ |
| Key | Action |
|---|---|
_ |
Horizontal split |
| |
Vertical split |
<Up> |
Decrease height |
<Down> |
Increase height |
<Left> |
Decrease width |
<Right> |
Increase width |
| Key | Action |
|---|---|
<F1> |
Toggle paste mode |
<F2> |
Toggle spell check |
<F3> |
Toggle line wrap |
<Leader>/ |
Clear search highlight |
| Key | Action |
|---|---|
. |
Repeat last command |
@ |
Execute macro |
s |
Sort lines |
u |
Sort unique |
| Key | Action |
|---|---|
<C-\> |
Open vertical screen shell |
<Leader>r |
Run rspec at cursor |
<Leader>e |
Run cucumber at cursor |
<Leader>w |
Set breakpoint |
<Leader>m |
Repeat last command |
| Command | Action |
|---|---|
w!! |
Save with sudo |
| Key | Action |
|---|---|
cs"' |
Change surrounding " to ' |
ds" |
Delete surrounding " |
ysiw" |
Surround word with " |
S" |
Surround selection with " (visual) |
| Key | Action |
|---|---|
j |
Move down (display line) |
k |
Move up (display line) |
:PlugInstall- Install plugins:PlugUpdate- Update plugins:PlugClean- Remove unlisted plugins:PlugUpgrade- Upgrade vim-plug itself:PlugStatus- Check plugin status:PlugDiff- Review changes from updates
:CocInstall <name>- Install extension:CocUninstall <name>- Uninstall extension:CocUpdate- Update all extensions:CocInfo- Show coc info:CocConfig- Edit coc-settings.json:CocList extensions- List extensions:CocList diagnostics- Show diagnostics:CocRestart- Restart coc services
:ALEFix- Fix issues in current buffer:ALEInfo- Show ALE info:ALEToggle- Toggle ALE:ALELint- Lint current file
:Files- Find files:Buffers- Browse buffers:Rg- Ripgrep search:Lines- Search lines in buffers:BLines- Search lines in current buffer:Tags- Browse tags:Commits- Browse git commits:Colors- Browse color schemes:History- Browse command history
:Gitor:G- Git command:Gstatus- Git status:Gdiff- Git diff:Gblame- Git blame:Gcommit- Git commit:Gpush- Git push:Gpull- Git pull
:NERDTreeToggle- Toggle tree:NERDTreeFind- Find current file- Inside NERDTree:
o- Open file/directoryi- Open in splits- Open in vsplitm- Menu (create, delete, move)R- Refresh?- Help
:UndotreeToggle- Toggle undo tree:UndotreeShow- Show undo tree:UndotreeHide- Hide undo tree
- Completion: Start typing and use Tab to navigate suggestions
- Documentation: Hover over any symbol and press
K - Quick Fix: On an error, press
<Leader>qffor auto-fix - Refactoring: Use
grto find all references before renaming - Search: Use
<Leader>ainstead of:grepfor faster results - Buffers: Use
<Leader>,to quickly switch buffers - Git Changes: Use
[hand]hto review changes before committing