To Start vi
* | vi filename | edit filename starting at line 1 |
---|---|---|
vi -r filename | recover filename that was being edited when system crashed | |
To Exit vi
whenever a colon (:) is typed.
* | :x<Return> | quit vi, writing out modified file to file named in original invocation |
---|---|---|
:wq<Return> | quit vi, writing out modified file to file named in original invocation | |
:q<Return> | quit (or exit) vi | |
* | :q!<Return> | quit vi even though latest changes have not been saved for this vi call |
沒有留言:
張貼留言