Neovim Cheatsheet
| Mode |
Keybind |
Action |
| normal |
SPACE + cc |
NERDCommenterComment |
| normal |
SPACE + c + SPACE |
NERDCommenterToggle |
| normal |
SPACE + cm |
NERDCommenterMinimal |
| normal |
SPACE + cn |
NERDCommenterNested |
| normal |
SPACE + c$ |
NERDCommenterToEOL |
| normal |
SPACE + ci |
NERDCommenterInvert |
| normal |
SPACE + cs |
NERDCommenterSexy |
| normal |
SPACE + cy |
NERDCommenterYank |
| normal |
SPACE + cA |
NERDCommenterAppend |
| normal |
SPACE + cl |
NERDCommenterAlignLeft |
| normal |
SPACE + cb |
NERDCommenterAlignBoth |
| normal |
SPACE + cu |
NERDCommenterUncomment |
| normal |
SPACE + ca |
NERDCommenterAltDelims |
Search
| Mode |
Keybind |
Action |
| normal |
SPACE + sh |
[S]earch [H]elp |
| normal |
SPACE + sk |
[S]earch [K]eymaps |
| normal |
SPACE + sf |
[S]earch [F]iles |
| normal |
SPACE + ss |
[S]earch [S]elect Telescope |
| normal |
SPACE + sw |
[S]earch current [W]ord |
| normal |
SPACE + sg |
[S]earch by [G]rep |
| normal |
SPACE + sd |
[S]earch [D]iagnostics |
| normal |
SPACE + sr |
[S]earch [R]esume |
| normal |
SPACE + s. |
[S]earch Recent Files ("." for repeat) |
| normal |
SPACE + SPACE |
[ ] Find existing buffers |
| normal |
SPACE + / |
[/] Fuzzily search in current buffer |
| normal |
SPACE + s/ |
[S]earch [/] in Open Files |
| normal |
SPACE + sn |
[S]earch [N]eovim files |
| normal |
ESC |
nohlsearch |
Editing
| Mode |
Keybind |
Action |
| normal |
sa |
Add surrounding |
| normal |
sd |
Delete surrounding |
| normal |
sr |
Replace surrounding |
| normal |
sf |
Find right surrounding |
| normal |
sF |
Find left surrounding |
| normal |
sh |
Highlight surrounding |
| normal |
Shift-o |
Add empty line below cursor |
| normal |
Shift-O |
Add empty line above curosr |
| normal |
SPACE + f |
Format buffer |
| insert |
Arrows |
Traverse completion menu |
| insert |
CTRL-y |
Select completion |
Diagnostics
| Mode |
Keybind |
Action |
| normal |
]d |
Jump to next diagnostic in current buffer |
| normal |
]D |
Jump to last diagnostic in current buffer |
| normal |
[d |
Jump to previous diagnostic in current buffer |
| normal |
[D |
Jump to first diagnostic in current buffer |
| normal |
SPACE + q |
Open diagnostic [Q]uickfix list |
| normal |
CTRL-w + d |
Show diagnostics under cursor |
Splits and tabs
| Mode |
Keybind |
Action |
| command |
:sp |
Split window horizontally |
| command |
:vsp |
Split window vertically |
| command |
:tabe |
Create new tab |
| command |
:tabc |
Close the current tab |
| command |
:tabn |
Go to next tab |
| command |
:tabp |
Go to previous tab |