Friday, September 7, 2012

Unix vi commands

 I hated these black screens and these unix commands in particular. Trying to book mark so I wont forget ;)

Go to First line of the file  - :1
Go to last line - Shift G
Move up - k
Move down - j
Move left - l
Move right - h

Move forward by one word - w
Move backward by one word - b

Move to the end of line : $
Move to the beginning of line : 0 (zero)

And there is a lot more, all well documented here below :

http://www.ccsf.edu/Pub/Fac/vi.html

No comments: