






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Programming UNIX; Subject: COMP Computer Science; University: University of Memphis; Term: Spring 2006;
Typology: Study notes
1 / 30
This page cannot be seen from the preview
Don't miss anything!























i, I,a, A,o, O,R
Esc
To enter text: any text you enter will be displayed on the screen
move left one position
move right one position
move down one line
move up one line Your arrow keys might work (dependson the version of vi and yourterminal)
Key sequence character
position the
cursor over the char and then press
x
word^
position the cursor at the startof the word and then press
dw
Line^
position the cursor anywhere inthe line and then press
dd
Current positionto the end ofcurrent line
press^ D block of lines
:
d
Key sequence character
position the
cursor over the char, press^ r
, then the replacement char
word^
position the cursor at the startof the word, press
cw , then the replacement text followed by
Esc
Line^
position the cursor anywhere inthe line, press
cc , then the replacement text followed by
Esc
search forward for string ?string
search backward for string^ (from current position) n^
repeat last search N^
repeat last in opposite direction
s /string1/string z^ replaces the first occurrence string1 withstring2 on each line :
s /string1/string
g
z^ replaces every occurrence of string1 withstring2 on each line (global replacement
:set {^ Display current settings:
:set all
{^ Available settings:^ z^ autoindent^ z^ ignore case^ z^ number^ z^ showmode^ z^ showmatch {^ Example:^ :set autoindent^ :set noautoindent {^ Use .exrc