This is a quick reference guide for NVim configuration key bindings for https://github.com/ecosse3/nvim
Key Bindings | Description |
---|---|
<C - e> |
Open File Explorer |
Backspace |
Back to file explorer (in editor normal mode) |
g? |
Open commands menu |
a |
Create new file/directory |
x |
Cut |
c |
Copy |
y |
Copy name |
r |
Rename |
I |
Toggle git ignore files |
Key Bindings | Description |
---|---|
<C - p> |
Telescope git files |
<S - p> |
Telescope live grep |
s |
Enables lightspeed |
SPC s d |
Search dotfiles |
SPC s h |
Search file history |
SPC s s |
Search history |
Key Bindings | Description |
---|---|
<C - Space> or SPC c a |
Code action |
<S - K> |
Show documentation under cursor |
gd |
Go to definition |
gr |
Go to references |
]g |
Go to next diagnostic |
[g |
Go to prev diagnostic |
SPC c f |
Format document (usually ESLint/Prettier) |
SPC c r |
Rename |
SPC c q |
Quick fix |
SPC c d |
Local diagnostics list |
SPC c o |
Organize imports |
Key Bindings | Description |
---|---|
SPC g g |
Lazygit - for committing and branch change |
SPC g s |
Telescope status |
]c |
Go to next change hunk |
[c |
Go to prev change hunk |
SPC g d |
Advanced powerful diff view |
SPC g m |
View hunk diff of a line under cursor |
SPC g h r |
Reset changed hunk under cursor |
SPC g h s |
Stage hunk under cursor |
SPC g l c |
Quick check of previous commit in current buffer |
SPC g w c |
Creates a new worktree |
SPC g w w |
Switches to a worktree |
Key Bindings | Description |
---|---|
<C - e> |
Toggles nvim-tree file explorer |
SPC p w |
Find word under cursor in project |
SPC p f |
Find file under cursor in project |
SPC p t |
Finds TODOs/NOTES in project |
SPC p l |
Switch between projects |
SPC p s |
Save session to load it later from Dashboard |
Key Bindings | Description |
---|---|
gcc |
Create/remove comment |
gc (visual) |
Create/remove comment |
gcO |
Create comment line before |
gco |
Create comment line after |
Key Bindings | Description |
---|---|
ga (visual) |
Aligns selection based on separator (comma, semi-colon, colon etc.) |
SPC t m |
Enables Table Mode |
SPC t i C |
(Only when Table Mode Enabled) Insert column before |
SPC t i c |
(Only when Table Mode Enabled) Insert column after |
SPC t d c |
(Only when Table Mode Enabled) Delete column |
SPC t d r |
(Only when Table Mode Enabled) Delete row |
SPC t s |
(Only when Table Mode Enabled) Sort table alphabetically |
Key Bindings | Description |
---|---|
<S - q> |
Smartly closes current buffer without breaking UI |
<C - a> |
It is not only increases number, but switches between true/false/const/let/function/arrow function/increment dates etc. |
<C - n> |
Finds next occurrence (like *) of word and puts multi-cursor there |
<C - o> |
Jumps to previous cursor in jumplist |
v |
Smartly selects next subjects of current treesitter context |
za |
Toggle folds |
zM |
Close all folds |
zR |
Open all folds |
zr |
Open all folds except imports/comments |
gJ |
Smartly joins lines based on treesitter |
gS |
Smartly splits lines based on treesitter |
<F12> |
Opens/closes terminal |
~ |
Switch function arguments smartly |