Examples – I.R.I.S. DC1100 User Manual

Page 60

Advertising
background image

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

Advertising
This manual is related to the following products: