vim save quit code example
Example 1: vi save and exit
//Save
:w
//Exit
:q
Example 2: save and close vim
// Save & exit(quit)
:wq
Example 3: vim save and quit
// Save & exit
:wp
//Save
:w
//Exit
:q
// Save & exit(quit)
:wq
// Save & exit
:wp