Monday, September 9, 2019

vi editor commands

vi filename.ext create the new file in the pwd.
"i"-------insert the cursor
"a"----write after cursor
"A"----write at the end of the line
:w----quit from the current file
:wq---save and quit from the current file
ESc----terminate from insert mode
:g/^$/d--------remove all empty line from the current file
shift+zz-----exit from the current file

python class topic video