[Linux] 7 Linux Editor

vim

Run mode

  • Edit mode : Edit command input wait
  • Insert Mode : edit mode, the input iinto the insert mode, insert text information
  • Command mode : In edit mode, enter :a command mode

command

  • :q: Exit vi
  • :wq: Save and exit vi, and can create new files
  • :q!: Force Quit
  • :w file: Saves the current contents to a file
  • :set number: Displays line numbers in the editing document
  • :set nonumber: Do not display line numbers in the editing document

nano

nano is a character terminal text editor, a bit like the editor program under DOS. It is much simpler than vi / vim, more suitable for Linux beginners. Some Linux distributions default editor is nano.

command

  • Save: ctrl + o
  • Search: ctrl + w
  • Previous: ctrl + y
  • Next: ctrl + v
  • Exit: ctrl + x

Guess you like

Origin www.cnblogs.com/xiaofengwang/p/11233933.html