Showing posts with label VI. Show all posts
Showing posts with label VI. Show all posts

Wednesday, March 10, 2010

Tips for VI

The connection between riemann and the hotel in Utah is really slow, so I've been using VI to edit code remotely. I rarely use it, but thought it would be useful to have some notes of the few commands that I have been using while they are fresh in my mind.

Opening file - vi filename
Start editing file - i (for insert)
Stop editing file - esc
Save file - :w (write)
Quit file - :q
Save and quit file - :wq

From Erin Sheldon, the vi mug from think geek: