This article mainly shares the following VI command line operation:
Vi/etc/sysconfig/iptabels
First we need to understand the Putty client's copy-paste insert document exit and other commands
Replication: Refers to select replication in the Putty client. Hold down the left mouse button to select the command you want to copy, click to copy the command line, the mouse continues to the right click on the paste to the next line.
Paste: That is, how to paste the commands on the Web page to the Putty client. Mouse Select the page you need to copy the command line, click Putty Software, the mouse in the Putty software right click on the page from the web-side input to the Putty client, and then we enter to open.
Insert Document command: First make sure your input method is entered in English, select the Putty client, we find the keyboard return key (Backspace) to the right there is an insert (insert key), click into the Insert document mode, the Putty client is displayed in the lower left--insert-- At this point we can enter English to try.
Exit: Edit How to exit, in fact, it is very simple, first press the ESC key at the top left of the keyboard, and then enter in the English state: Wq (colon Wq) to save the exit, the other Exit command
: Q: Exit
: q! : Do not save exit
ZZ: Exit after saving
: e! : Discard modification and re-edit
Source: http://banwagong.host/15.html
From for notes (Wiz)
Linux editing documentation