Tuesday, September 13, 2011

Basic vi Commands

http://www.cs.colostate.edu/helpdocs/vi.html

1. open file: vi filename
2. enter the insert mode: i
3. turns off the Insert mode:
4. enter command model: shift + :
5. exit vi: q
exit vi and save file: wq
exit vi and not save file: q!
6. delete entire current line: dd

No comments:

Post a Comment