Answers for "how to insert in vim and save"

18

how to insert in vim and save

vim filename #open file in vim
//To insert text press i and you can start editing
//Press Esc key and type :wq to save a file AND exit
//Press Esc key and type :w to save WITHOUT exiting
Posted by: Guest on May-18-2021
1

vim save file

// Save a new file (if you have entered vim without first creating a file)
:w <filename>
// Save file and exit
:x
Posted by: Guest on May-12-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language