vile is a vi clone based originally on MicroEmacs, whose main goal is to provide the “finger feel” of vi.
-h
Invokes vile on the help file.
-R
Invokes vile in “read-only” mode; no writes are permitted while in this mode.
-s
pattern
In the first file, vile executes an
initial search for the given pattern; this can also be given as
+/
pattern
.
-v
Invokes vile in “view” mode; no changes are permitted to any buffer while in this mode.
-?
vile prints a short usage summary and exits.
Command |
Key
| Function |
---|---|---|
|
| Eliminate all windows except the current one |
|
| Destroy the current window unless it’s the last one |
| ^X e | Bring given (or under-cursor, for |
|
| Increase the size of the current window by count |
|
| Move next window down (or buffer up) by count lines |
|
| Move next window up (or buffer down) by count lines |
|
| Scroll window to left by count columns, half-screen if count unspecified |
|
| Scroll window to right by count columns, half-screen if count unspecified |
|
| Move to the next window |
|
| Reframe with cursor specified by
where, as follows: center
( |
|
| Move to the previous window |
| Change the current window to count lines | |
| Return to window saved with
| |
| Mark a window for later return with
| |
|
| Move next window down by count half-screens |
|
| Move next window up by count half-screens |
|
| Decrease the size of the current window by count lines |
|
| Split the window in half; a count of 1 or 2 determines which becomes current |
| Bring given file or existing buffer into window; mark it “view-only” | |
|
| Display a list of the first nine buffers; a digit
moves to the given buffer, |
|
| Pop up/down a window showing all the vile buffers |
s S
Matches whitespace and nonwhitespace characters, respectively.
w W
Matches “word-constituent” characters (alphanumerics and the underscore, “_”) and nonword-constituent characters, respectively.
d D
Matches digits and nondigits, respectively.
p P
Matches printable and nonprintable characters, respectively. Whitespace is considered to be printable.
(...)
Provides grouping for *
,
+
, and ?
, as well as
making matched subtexts available in the replacement part of a
substitute command.
vile allows the escape sequences
,
f
,
,
, and
to appear in the
replacement part of a substitute command. They stand for backspace,
formfeed, carriage return, tab, and newline, respectively. Also, from
the vile documentation:
Note that vile mimics perl’s handling of
uL1E
instead of vi’s. Given:s/(abc)/uL1E/
, vi will replace withabc
whereas vile and perl will replace withAbc
. This is somewhat more useful for capitalizing words.
vile stores all your ex commands in a buffer
named [History]
. Options control
your access to it and the use of the minibuffer (the colon command
line).
Key | Meaning |
---|---|
↑, ↓ | Move up (previous), down (more recent) in the history |
←, → | Move left, right on the recalled line |
BACKSPACE | Delete characters |
The ex command line provides completion of various sorts. Completion applies to built-in and user-defined vile commands, tags, filenames, modes, and variables, and to the terminal characters (the character setting, such as backspace, suspend, and so on, derived from your stty settings).
Option | Meaning |
---|---|
| Log commands from the colon command line in the
|
| The character that toggles the editing mode in
the minibuffer to use vi motion commands.
You can also use the vi commands
|
| Define the highlight attribute to use when the
user toggles the editing mode in the minibuffer. The value
should be one of |
vile provides both ex and vi commands for managing the tag stack.
Command | Function |
---|---|
| Edit the file containing tagstring as defined in the tags file |
| Pop a cursor position off the stack, restoring the cursor to its previous position |
| Continue searching through the tags file for more matches |
| Create a new window that displays the tag stack; the display changes as tags are pushed to or popped off the stack |
Unlike the other clones, vile only provides vi commands for increasing programmer productivity.
Command | Function |
---|---|
| Run command, saving the
output in a buffer named
|
| Find the next error; vile parses the output and moves to the location of each successive error |
The error messages are parsed using regular expressions in the
buffer [Error Expressions]
. vile
creates this buffer automatically and uses it when you use ^X
^X
. You can add expressions to it as needed.
You can point the error finder at an arbitrary buffer (not just
the output of shell commands) using the
:error-buffer
command. This lets you use the error
finder on the output of previous compiler or egrep
runs.
Option | Default |
---|---|
alt-tabpos
(atp ) | noatp |
animated | animated |
autobuffer
(ab ) | autobuffer |
autocolor
(ac ) | 0 |
autosave
(as ) | noautosave |
autosavecnt
(ascnt ) | 256 |
backspacelimit
(bl ) | backspacelimit |
backup-style | off |
bcolor | default |
byteorder-mark
(bom ) | auto |
check-access | current |
check-modtime | nocheck-modtime |
cindent | nocindent |
cindent-chars | :#{}()[] |
cmode | off |
color-scheme
(cs ) | default |
comment-prefix | ^s*((s*[#*>])|(///*))+ |
comments | ^s*/?(s*[#*>/])+/?s*$ |
cursor-tokens | regex |
dirc | nodirc |
dos | nodos |
fcolor | default |
fence-begin | /* |
fence-end | */ |
fence-if | ^s*#s*if |
fence-elif | ^s*#s*elif> |
fence-else | ^s*#s*else> |
fence-fi | ^s*#s*endif> |
fence-pairs | {}()[] |
file-encoding | auto |
filtername
(fn ) |
|
for-buffers
(fb ) | mixed |
glob | !echo %s |
highlight
(hl ) | highlight |
history
(hi ) | history |
ignoresuffix
(is ) | (.orig|~)$ |
horizscroll
(hs ) | horizscroll |
linewrap
(lw ) | nolinewrap |
maplonger | nomaplonger |
meta-insert-bindings
(mib ) | mib |
mini-hilite
(mh ) | reverse |
modeline | nomodeline |
modelines | 5 |
overlap-matches | overlap-matches |
percent-crlf | 50 |
percent-utf8 | 90 |
popup-choices
(pc ) | delayed |
popup-msgs
(pm ) | nopopup-msgs |
recordseparator
(rs ) | lf [a] |
resolve-links | noresolve-links |
reuse-position | noreuse-position |
ruler | noruler |
showchar
(sc ) | noshowchar |
showformat
(sf ) | foreign |
showmode
(smd ) | showmode |
sideways | 0 |
tabinsert
(ti ) | tabinsert |
tagignorecase
(tc ) | notagignorecase |
taglength
(tl ) | 0 |
tagrelative
(tr ) | notagrelative |
tags | tags |
tagword
(tw ) | notagword |
undolimit
(ul ) | 10 |
unicode-as-hex
(uh ) | nounicode-as-hex |
unprintable-as-octal
(uo ) | nounprintable-as-octal |
visual-matches | none |
xterm-fkeys | noxterm-fkeys |
xterm-mouse | noxterm-mouse |
xterm-title | noxterm-title |
[a] This depends on the platform for which vile is compiled. |
18.117.72.224