From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/bash/readline-vi-mode.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 devdocs/bash/readline-vi-mode.html (limited to 'devdocs/bash/readline-vi-mode.html') diff --git a/devdocs/bash/readline-vi-mode.html b/devdocs/bash/readline-vi-mode.html new file mode 100644 index 00000000..86455f13 --- /dev/null +++ b/devdocs/bash/readline-vi-mode.html @@ -0,0 +1,6 @@ +

Readline vi Mode

While the Readline library does not have a full set of vi editing functions, it does contain enough to allow simple editing of the line. The Readline vi mode behaves as specified in the POSIX standard.

In order to switch interactively between emacs and vi editing modes, use the ‘set -o emacs’ and ‘set -o vi’ commands (see The Set Builtin). The Readline default is emacs mode.

When you enter a line in vi mode, you are already placed in ‘insertion’ mode, as if you had typed an ‘i’. Pressing ESC switches you into ‘command’ mode, where you can edit the text of the line with the standard vi movement keys, move to previous history lines with ‘k’ and subsequent lines with ‘j’, and so forth.

+

+ Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
+ https://www.gnu.org/software/bash/manual/html_node/Readline-vi-Mode.html +

+
-- cgit v1.2.3