How do I edit a file in vi editor?

Lê Minh

Member
How do I edit a file in vi editor?
Answer
To open a file in the vi editor to start editing, simply type in ‘vi <filename>’ in the command prompt. To quit vi, type one of the following commands in the command mode and press ‘Enter’. Force exit from vi even though changes haven’t been saved – :q!
 

Tìm kiếm

Back
Top