Vim exit

1. We press the "I", i.e. switch to the "insert" state.

2. We Yaoan upper left corner of the keyboard "ESC", I noticed no

3. We enter "colon", namely ":" (without quotation marks), the colon will appear at the bottom, waiting for input commands, as my input is WQ. Function as follows.

  W: write, write

  Q: quit, quit

  Then Enter to save and exit the

4. There are two methods to save and exit

  A: A last input command, input "x", it is the same, i.e., X = WQ.

  B: The quickest way: After pressing the ESC, press shift + zz, or uppercase mode by switching to the ZZ, the exit can be saved, that is, by the lower capital Z. 2

5. exit without saving methods

  Press ESC, and then enter the colon, when you enter the command, direct input "q!"

6. Force Quit 

  Press ESC, then colon, when you enter the command, enter "!" As shown.

  But after the exit, there will be prompt!

 

 

linux command to lowercase Oh!

Guess you like

Origin www.cnblogs.com/pthaochiya/p/11617833.html