AVR32 Linux Development/Editing files
From AVRFreaks Wiki
The following sections are brief introductions to using the two editors which are available when running Linux on the STK1000: VI and Joe.
Crash course in VI
VI is a powerful editor, but many people find its modal behaviour confusing and difficult to understand. Although the purpose of this document is not to be a VI tutorial or reference, here are some basic tips.
VI is normally started by typing vi <filename> on the command line prompt. VI then opens and displays the file, but you can't start editing right away: VI is now in command mode.
The most important VI command is 'i', which tells VI to enter insert mode. So to insert text, press 'i', then enter the text. When you are finished, pressing ESC will cause VI to go back to command mode. To delete a single line of text, you have the 'dd' command. To delete a single character, the 'x' command is useful. The second most important VI command is ':wq' which will save and exit. If you wish to quit without saving, type ':q!'.
There a many VI resources on the internet. Since VI is a de facto standard editor which is usually available on any Linux or Unix systems, a basic knowledge is useful.
JOE: the friendly editor
Joe is a user-friendly editor which is also quite popular on various Unix systems. Joe lets you use the arrow keys along with Page Up, Page Down, Home and End to navigate the file. It also contains its own help screen which can be turned on or off by pressing Control-K H.
Joe provides emulation modes for other popular editors: jpico emulating the Pine mail client's PICO editor; jstar which has WordStar key bindings and functionality; and jmacs which is similar to Emacs. These emulator modes are started by executing the command name, e.g to pretend to use Emacs, type jmacs <filename>.