How do you use vi?

How do you use vi?
Answer
  • To enter vi, type: vi filename <Return>
  • To enter insert mode, type: i.
  • Type in the text: This is easy.
  • To leave insert mode and return to command mode, press: <Esc>
  • In command mode, save changes and exit vi by typing: :wq <Return> You are back at the Unix prompt.
 

Tìm kiếm

Back
Top