vi basics

x - delete a character
! - start of line
$ - end of line
dd - delete line
i - go to insert mode
a - go to append mode
esc - go back to command mode
u - undo
:wq - write and quit
:q! - just quit
:e! - undo what you did to the file and start over

:q! emacs - anything more complicated

Categories

About this Entry

This page contains a single entry by Mike Tsao published on October 18, 2004 10:34 AM.

Setting up X on a headless server was the previous entry in this blog.

ssh CYA utility is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.2rc2-en