Change # lines
#cc
Change in word.
ciw
Delete to end of line and enter INSERT mode
C
Start of line, stay in NORMAL mode
0
End of line, stay in NORMAL mode
$
To copy/paste with PRIMARY clipboard (i.e. copy on select)
"*y ("*yy) and then "*p
To copy/paste with CLIPBOARD clipboard (i.e. Ctrl c/v)
"+y ("+yy) and then "+p
Yank full line without new line character
^y$
Line numbers
:set number
:set nonumber
Line wrap
:set wrap
:set nowrap
Open all files in current directory
nvim *
Unload buffer [N] (default: current buffer) and delete it from the buffer list.
:bd[elete][!] [N]
Open all buffers in horizontal or vertical windows
:[vertical] ball
Open all buffers in tabs
:tab ball
Terminal
Start :term
Insert mode i
Normal mode CTRL+\ CTRL+n
Browse recent files
:browse oldfiles
Netrw
Make word below cursor the top of tree listing
gn
Hide dot files
gh
Rename or Delete a file
:Explore
then R
or D
Quickfix
Go to an older list
:colder
Go to a newer list
:cnewer
Directories and Path
Current Directory is where vim was started, :pwd
and :cd
apply. “Directory of current file” could be different to Current Directory.
When setting the path
.
and ,,
refer to the current directory and directory of current file.