IRIS DC1100E Modem User Manual


 
Coaxial Networks, Inc. Page 60 of 60
:n -- start editing next file in list
:rew -- rewind file list, start editing 1
st
file on argument
list again
Q -- quit vi and enter ex
:pre -- Preserve file.
:rec file -- recover file
Examples
2
j -- move cursor down
k -- move cursor up
h = [BS] -- move cursor left
l = [SPACE] -- move cursor right
+ = [RETURN] -- first non-whitespace character on next line
cw -- change word
dd = d_ -- delete line
yy = y_ -- yank current line into the general buffer
"ayj -- yank current line and one below into buffer a
yfc -- yank until next occurrence of c on current line into the
general buffer
3dl = d3l -- delete next 3 characters
4c( = 2c2( = c4( -- change next 4 sentences
>% -- While on a brace, paren., or bracket; shift right until
closing brace, etc.
:%!sort = :1,$!sort -- sort current file
:5,10s/foo/bar/2 -- change the second occurrence of foo with bar
on lines 5-10
3J -- Join next 2 lines to current one
3,9m$ -- move lines 3 through 9 to the end of the file
ab w/o with out -- when w/o is typed change to with out
:?foo?,/bar/d -- delete from the reverse match of foo until the
next match of bar
g/{/,/}/< -- shift all lines between, and including, a "{" and a
"}" left
:$-4,$d -- delete last five lines of buffer
:%s/^\(.*\) \(.*\)$/\2 \1/ -- swap everything before and after the
first space