vile has a number of interesting features that are the topic of this section:
vile’s editing model is somewhat different from vi’s. Based on concepts from Emacs, it provides key rebinding and a more dynamic command line.
vile supports editing “modes.” These are groups of option settings that make it convenient for editing different kinds of files.
vile’s procedure language allows you to define functions and macros that make the editor more programmable and flexible.
A number of smaller features make day-to-day editing easier.
In vi and the
other clones, editing functionality is “hardwired” into the editor.
The association between command characters and what they do is built
into the code. For example, the
key deletes characters, and the
key enters insert mode. Without resorting to severe trickery, you
cannot switch the functionality of the two keys (if it can even be
done at all).
vile’s editing model,
derived from Emacs through MicroEMACS, is different. The editor has
defined, named functions, each of which performs a single editing
task, such as
delete-previous-character. Many of the
functions are then bound to keystrokes, such as binding
vile has different flavors of key bindings for its insert, command, and selection modes. Here we are describing the bindings for the normal editing mode. Changing ...