Browse Source

Added vim mode to GNU readline interface

tags/v0.1.1
Micah Halter 11 months ago
parent
commit
38a16930e8
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      readline/.inputrc

+ 12
- 0
readline/.inputrc View File

@@ -0,0 +1,12 @@
1
+$include /etc/inputrc
2
+set editing-mode vi
3
+$if mode=vi
4
+
5
+set keymap vi-command
6
+# these are for vi-command mode
7
+Control-l: clear-screen
8
+
9
+set keymap vi-insert
10
+# these are for vi-insert mode
11
+Control-l: clear-screen
12
+$endif

Loading…
Cancel
Save