About: Use vi shortcuts in terminal   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

To enable Vi-mode, edit (or create) the file ~/.inputrc or /etc/inputrc and add the following lines: set editing-mode vi set keymap vi-command Restart your terminal and you'll have Vi keybindings. By default, you're in insert mode; press Esc to enter command mode. You may want to keep a cheat sheet of default keymappings handy, since they do differ from Vi/Vim occasionally. A reference to adjusting the options and mappings of the readline library most shells use for text editing can be found in the readline man page, or in the GNU bash man page.

AttributesValues
rdfs:label
  • Use vi shortcuts in terminal
rdfs:comment
  • To enable Vi-mode, edit (or create) the file ~/.inputrc or /etc/inputrc and add the following lines: set editing-mode vi set keymap vi-command Restart your terminal and you'll have Vi keybindings. By default, you're in insert mode; press Esc to enter command mode. You may want to keep a cheat sheet of default keymappings handy, since they do differ from Vi/Vim occasionally. A reference to adjusting the options and mappings of the readline library most shells use for text editing can be found in the readline man page, or in the GNU bash man page.
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1218(xsd:integer)
Category
  • Terminals
Complexity
  • basic
Created
  • 2006-05-02(xsd:date)
ID
  • 1220(xsd:integer)
NEXT
  • 1221(xsd:integer)
Rating
  • 81(xsd:integer)
abstract
  • To enable Vi-mode, edit (or create) the file ~/.inputrc or /etc/inputrc and add the following lines: set editing-mode vi set keymap vi-command Restart your terminal and you'll have Vi keybindings. By default, you're in insert mode; press Esc to enter command mode. You may want to keep a cheat sheet of default keymappings handy, since they do differ from Vi/Vim occasionally. In bash, to see a list of the keymappings currently active, use the command bind -p | grep -v '^#\|self-insert\|^$'. Important: the displayed keybindings will change depending on whether you're in insert or command mode when you execute the command. It is recommended that you run the command once with insert mode active, and once when command mode is active. A reference to adjusting the options and mappings of the readline library most shells use for text editing can be found in the readline man page, or in the GNU bash man page. When customizing your Vi-style kemappings, be mindful of which editing mode your keymap applies to. In your ~/.inputrc, a line with set keymap vi-command means that mappings below that line apply to command mode; a line with set keymap vi-insert means that mappings below that line apply to insert mode. See a sample .inputrc for an example of this.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software