vile—vi like Emacs
vile is a vi clone based originally on MicroEmacs, whose main goal is to provide the “finger feel” of vi.
Important Command-Line Options
-g
N
vile begins editing on the first file at the specified line number; this can also be given as
+
N
.
-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.
@
cmdfile
vile runs the specified file as its startup file and bypasses any normal startup file.
vile Window Management Commands
Command |
Key sequences
| 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 |
|
|
Get vi and Vim Editors Pocket Reference, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.