Change # lines

Change in word.

Delete to end of line and enter INSERT mode

Start of line, stay in NORMAL mode

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

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


Start :term
Insert mode i
Normal mode CTRL+\ CTRL+n

Browse recent files
:browse oldfiles


Make word below cursor the top of tree listing

Hide dot files

Rename or Delete a file
:Explore then R or D


Go to an older list

Go to a newer list

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.