vi commands

Vi Commands

:w Save file
:wq Save and exit
:q! exit with out saving.
:set number Show line number. To hide, use :set nunumber

Posted in Linux