Date created: Monday, December 23, 2019 2:44:38 PM. Last modified: Monday, June 19, 2023 5:33:05 PM

'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