How to use "vi" edit the docs or source code files

The key important method is to know the only some shutcut key!

enter vi;

if you want to enter the "Edit" mode ,please type 'a', and you will enter the "edit " mode.

"Esc" key to exit the "Edit" mode.

In "Command" mode:

":q" key to exit vi

":wq <your filename>" : save and exit vi

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章