10.8. Improved Editing Facilities
This section describes the features of elvis that make simple text editing easier and more powerful.
10.8.1. Command-Line History and Completion
Everything you type on the ex command line is saved in a buffer named Elvis ex history. This is accessible like any other elvis buffer, but is not directly useful when just viewed in a window.
In order to access the history, you use the arrow keys
on your terminal to display previous commands and to edit them.
Use
and
to page through the list, and
and
to
move around on a command line. You can insert characters by typing
and erase them by backspacing over them.
Much as when editing in a regular vi buffer,
the backspace does remove the characters, but the
line is not updated as you type, so be careful!
When entering text into the Elvis ex history buffer (i.e., on the colon command line), the TAB key can be used for filename expansion. The preceding word is assumed to be a partial filename, and elvis searches for all matching files. If there are multiple matches, it fills in as many characters ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access