Linux Command finishing vim

Vim 

 

First, the official website 

http://www.vim.org

Second, background

All Unix Like systems will be built instruments vi editor, developers use the largest number of vim commands in our program here.

Third, the operation

  Three operating modes: Mode Command (Command mode), the input mode (Insert mode) and bottom command mode (Last line mode)

  Use vim command to open the file, and this was the command mode only allows you to view, for example, 

  vim / file name

  Before editing a file, used in the English state  i  to enter the edit mode, INSERT appears below, in this case the input mode , any line can be edited within the data file.

  If the input is completed want to save the file, or save and exit the file, move the cursor to the end of the last line, then enter the English state   :  in this case, the bottom line mode , can be saved, quit the operation.

  In the bottom line mode, enter the w (save) and then return, then save the file, and then close the bash can be.

Fourth, the process

   (Reprinted Picture: rookie tutorials, links: https://www.runoob.com/linux/linux-vim.html )

 

 

 

Fifth, a list of commonly used commands

command explain Are Common
:w The edited data is written to disk file Common
:q Leaving vim Common
:wq  After leaving the store, if it is:! Wq was later forced to leave the store Common
     
     

 

Six other networks refer to the examiner detailed documentation.

 

 

 

 

  • i  is switched to the input mode to input characters.
  • x  delete the character at the current cursor position.
  • :  Handover in the end line command mode to enter commands in the bottom row.

 

Guess you like

Origin www.cnblogs.com/yuchuan/p/linux_vim.html