JOE, the editor
What is an editor?
- A program that allows you to enter data into a file
- It is not a word processor
- It does not try to do things for you, (word wrap, spell check ...)
Please invest some time in learning how to use your editor
now, it will save you tears later
Joe
- Joe's Own Editor
- This is a simple to use editor, that is easily compiled. (Or so
they say)
- It is not a standard UNIX editor, VI is it.
- A personal note, If you plan on continuing to grad school, or a
UNIX environment, you really should spend some time learning
VI sometime.
- man joe
- Free Software under the GPL
Starting Joe
- joe
- joe filename
- joe -help filename
- Many other command line options. (man joe)
Getting Started
- If you are creating a new file, the message
New FIle will appear when you start the editor.
- If you are modifying an existing file, that file will appear.
- If you type most characters, they will appear at the position
before the cursor.
- You can move around with the arrow keys.
- In the help menu, ^ means the control key, this is a modifier key
just like the shift key. Hold this down while pressing the other
character (mostly k)
Play a little
Things you need to be able to do with your editor
- Go to a given line number - (^KL)
- Delete
- Characters (backspace) or (^D)
- Words (^W) or (^O)
- Lines (^Y)
- Undo the last mistake
- (^_)
- This might require you to do a -
- Cut and paste a block of code.
- Mark the beginning of the block - go there and press (^KB)
- Mark the end of the block - go there and press (^KK)
- Move to the new location for the block
- Press
- (^KM) to move the block
- (^KC) to copy the block
- (^KY) to delete the block
Exit with various states of saving
- (^C) exit - no save
- (^KX) exit and save
- (^KD) save no exit
-
That is probably enough.