No |
Command Type |
Command |
Meaning |
101 |
Command mode |
u |
undo last command. |
102 |
Command mode |
U |
restore current line. |
103 |
Command mode |
. |
repeat last command which made a change or deletion; when using the numbered buffers, the number will be incremented. |
104 |
Command mode |
P |
put copy of previously deleted text before / above cursor. |
105 |
Command mode |
p |
put copy of previously deleted text after / below cursor. |
106 |
Command mode |
x p |
transpose the character under the cursor with one next to it. |
107 |
Command mode |
" 1-9 p |
put the nth previously deleted text back into program. |
108 |
Marks |
m a-z |
set one of 26 bookmarks to the current cursor position. |
109 |
Marks |
' a-z |
move to beginning of line containing specified mark. |
110 |
Marks |
' ' |
return to line before last absolute cursor motion. |
111 |
Marks |
ctrl-E a-z |
move to cursor position of the mark specified. |
112 |
Marks |
ctrl-E ctrl-E |
return to cursor position befor lst absolute motion. |
113 |
Marks |
| |
move to a particular column ctrl-0. |
114 |
Set Commands |
: set all |
display all options. |
115 |
Set Commands |
: s e |
set options described below (no turns off option): autoindent (ai), autowrite (aw), ignore case (ic), lisp, list, magic, nomesg, number (nu), paragraph (para), redraw (re), sections (sect), shiftwidth (sw), shownatch (sm), slowopen (slow), term, wrapmargin, wrapscan (ws). |
116 |
Major text editing |
: #1, #2 d |
delete all lines from line #1 to line #2. |
117 |
Major text editing |
: ., line-number d |
delete from current line to line-number lines. |
118 |
Major text editing |
: line-number, . d |
delete from line-number to current line lines. |
119 |
Major text editing |
: line-number, $ d |
delete from line-number to the end of file lines. |
120 |
Major text editing |
: ., $ d |
delete from current line to the last line of file. |
121 |
Major text editing |
:number r file |
insert file after specified line number. |
122 |
Major text editing |
:#1, #2 w file |
write lines #1 - #2 to file. |
123 |
Major text editing |
: ., line-number w file |
write lines from current line to line-number to file. |
124 |
Major text editing |
: ., $ w file |
write lines from current line to last line to file. |
125 |
Major text editing |
:#1, #2 /pattern1/pattern2 |
changes first occurance of pattern1 to pattern2 between lines #1 - #2. |
126 |
Commands for LISP |
) |
forward S-expression. |
127 |
Commands for LISP |
} |
forward S-expression not stopping at atoms. |
128 |
Commands for LISP |
) |
backward S-expression. |
129 |
Commands for LISP |
} |
backward S-expression not stopping for atoms. |
130 |
Commands for LISP |
= |
indent for LISP. |
131 |
Miscellaneous Commands |
Esc |
cancel partially formed commands. |
132 |
Miscellaneous Commands |
ctrl-L |
clear and redraw (refresh) the screen. |
133 |
Miscellaneous Commands |
ctrl-R |
retype the screen (eliminsting "@" lines. |
134 |
Miscellaneous Commands |
ctrl-6 |
invert case (upper, lower) of character under cursor. |
135 |
Miscellaneous Commands |
ctrl-G |
show file status (name, current line #, total # lines). |
136 |
Miscellaneous Commands |
: f |
show current file and line (same as ctrl-G). |
137 |
Miscellaneous Commands |
< |
left shift. |
138 |
Miscellaneous Commands |
> |
rightshift. |
139 |
Miscellaneous Commands |
! |
filter through command. |
140 |
Miscellaneous Commands |
y |
yank a copy of the following object into "undo" buffer. |
141 |
Miscellaneous Commands |
Y |
yank a copy of the current line into "undo" buffer. |
142 |
Miscellaneous Commands |
number Y |
yank the stated number of lines into the "undo" buffer. |
143 |
Miscellaneous Commands |
" a-z y |
yank copy the following object into 1-26 buffers. |
144 |
Miscellaneous Commands |
: a b abbr spelled out |
expands abbr to spelled out as its typed. |
145 |
Miscellaneous Commands |
: G |
makes next command cover the current cursor position to EOF. |
146 |
Miscellaneous Commands |
:! command |
perform mentioned system command, then return. |
147 |
Miscellaneous Commands |
: s h |
temporarily exit to shell (ctrl-D to reenter vi). |
148 |
Miscellaneous Commands |
:t a |
to tag file entry "tag". |
149 |
Miscellaneous Commands |
: n |
edit next file in the list (vi file1, file2, etc). |
150 |
Miscellaneous Commands |
: n file1 file2 |
specify new file list. |