vi Editor
Specifics
- First recommendation--a good manual like Linda Lamb's
Learning the vi Editor from O'Reilly.
- Refresh the vi editor: CTRL-L
- Delete to end of file (include the current line)
:.,$d
- Delete to beginning of file (include the current
line):1,.d
- help with commands (Unix): man sort, etc.
- Substitute something for the current character and the
next n characters: .,.+n s
- Search for a particular character (a space) on a line
and subsitute nothing from that character to the end
of the line: 1,$s-\ .*$--
- 1,$ lines 1 through the last
- s substitute
- - separator
- \space space (character
searching for)
- . anything
- * continuation character
- $ to the end of the line
- -- separator (substitute
nothing)
Fixes For the vi Editor
- Problem: The lines sometimes garble together as you scroll
down the page.
Fix (not really a fix, but it works):
- Click on Terminal
- Choose Preferences
- Reduce the buffer size by 1 (24 lines worked for me)
Go back to my teacher home page.
Last update: 7/5/99