Answers for "how to save in vi editor"

23

vi save and exit

//Save
:w
//Exit
:q
Posted by: Guest on September-11-2020
2

save as in vi

//SAVE
:w
//SAVE AS
:w <new filename>
//EXIT - exit without saving
:q!
Posted by: Guest on August-14-2021
4

how to save in vi editor

To save a file, you must first be in Command mode. Press Esc to enter Command mode, and then type :wq to write and quit the file. The other, quicker option is to use the keyboard shortcut ZZ to write and quit.Aug 20, 2019
Posted by: Guest on February-23-2021
1

vi write and exit

wq // write and quit
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language