Use vim xx.yy to open a file firstly.
Then input i, you can insert new text in the opened file. When you want to end the input, you firstly click Esc bottom, then input :w to save the change or input :wq to save the change and close the opened file.
Use :q to close the vim and return the terminal GUI.
标签:commands,use,Use,vim,file,ubuntu,close,input From: https://www.cnblogs.com/xiaoaozi/p/16886765.html