Cheatography
https://cheatography.com
neovim configuration shortcuts
-- -- -- -- -- -- -- -- -- -- -- -- -- -- --
= key
= key
= key
= key
N = NORMAL mode
V = VISUAL mode
I = INSERT mode
This is a draft cheat sheet. It is a work in progress and is not finished yet.
vim
( N ) i |
Insert mode |
( N ) <C-v> |
Visual mode |
( N ) <S-v> |
Visual mode selecting line |
( N ) u |
Equivalent to CTRL + Z (Undo) |
( N ) <C-r> |
Equivalent to CTRL + SHIFT + Z (Redo) |
( V ) y |
Copy block of code |
( V ) d |
Cut block of code |
( N ) p |
Paste block of code |
( N ) / <word> |
Search for a word (n - Next | N - Previous) |
plugins
( N ) <leader> pi |
Install plugins |
( N ) <leader> pud |
Updagrade plugins |
( N ) <leader> pug |
Updagrade plugin manager |
git
( N ) <leader> gd |
Open git diff view |
( N ) <leader> gc |
Close git diff view |
terminal
( N ) <leader> tt |
Open terminal window |
|
|
browser files and folders
( N ) <leader> tb |
Browser files |
( N ) <leader> tb | <ESC> c |
Create file or folder (/) |
( N ) <leader> tb | <ESC> d |
Delete file or folder (/) |
( N ) <leader> tb | <ESC> r |
Rename file or folder (/) |
( N ) <leader> tg |
Search word in files |
( N ) <leader> xw |
Find troubles in files |
( N ) <leader> xd |
Find trouble in the file |
( N ) <leader> xc |
Close trouble browser |
tab bar navigation
( N ) <A-LEFT> |
Go to left tab |
( N ) <A-RIGHT> |
Go to right tab |
( N ) <A-p> |
Pin / Unpin tab |
( N ) <A-c> |
Close tab |
comments
( N | V ) <leader> cc |
Comment a line |
( N | V ) <leader> cs |
Comment selected lines |
( N | V ) <leader> cu |
Uncomment selected lines |
|