Date created: 12/23/19 14:44:38. Last modified: 03/12/21 08:34:24

'vim' Notes

~/.vimrc

set nocompatible
set backspace=indent,eol,start
set cursorline
set number

 

vi commands

Go to end of file

G

Go to beginning of file

gg

Show line numbers

:set nu

Hide line numbers

:set nu!

Delete everything from the current line to the top of the file

dgg

Delete all lines above the current one

kdgg

Delete everything from the current line to the end of the file

dG

Delete all lines containing deleteme

:g/deleteme/d
Write in sudo

:w !sudo tee %

 


Previous page: 'ufw' - Notes
Next page: 'youtube-dl' Notes