Cheatography
https://cheatography.com
Neovim (specifically using Nvchad) keybinds and commands
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Misc Commands
Access inbuilt cheatsheet |
Space + c + h |
Change theme |
Space + t + h |
Install language highlighting |
:TSInstall <language> |
Check installed language highlighting |
:TSInstallInfo |
Files/Buffer
Space + f + f |
Search files in current dir |
Space + f + b |
Show open files in buffer |
Tab |
Go forward in buffer |
Shift + Tab |
Go backward in buffer |
Space + x |
Close buffer |
:b <filename> |
Go to specific buffer containing <filename> |
:b# |
Return to previously visited buffer |
|
|
Filetree (nvim-tree)
Ctrl + n |
Open the file tree |
a |
Create a file |
r |
Rename file |
c |
Copy a file |
p |
Paste a file |
d |
Delete a file |
- (hyphen) |
Go up in directory tree (go to parent dir) |
m |
Mark file/dir |
Ctrl + l |
Move from file tree to editor |
Ctrl + h |
Move from editor to file tree |
:cd <path> |
Change file tree to <path> |
|
|
Window Managment
:vsp |
Split into vertical window |
:sp |
Split into horizontal window |
Ctrl + h/j/k/l |
Navigate through windows |
Ctrl + w + q |
Close window |
Shell (terminal)
:!<command> |
Run terminal commands in the Neovim command line |
Space + h |
Horizontal terminal window |
Space + v |
Vertical terminal window |
:ter(minal) |
Open terminal in a buffer |
Ctrl + \, (still holding Ctrl), Ctrl + n |
Enter normal mode in terminal to write vim commands |
a |
Enter insert mode in terminal |
|