About: Start in insert mode without losing your escape key   Sponge Permalink

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

First, I want to start in insert mode. Well "set im!" in my vimrc did the job, but I lost the escape key. Second, I have found that often times, when I'm in command mode, I hit escape trying to get back into insert mode. I am always rewarded with a beep, telling me once again I made that mistake. So I mapped esc in command mode to set insert mode (":set im") and I mapped esc in insert mode to unset insert mode (:set im) Well then I realized if you hit "i" in command mode, escape woulding work the first time. So here's the code to add to your vimrc:

AttributesValues
rdfs:label
  • Start in insert mode without losing your escape key
rdfs:comment
  • First, I want to start in insert mode. Well "set im!" in my vimrc did the job, but I lost the escape key. Second, I have found that often times, when I'm in command mode, I hit escape trying to get back into insert mode. I am always rewarded with a beep, telling me once again I made that mistake. So I mapped esc in command mode to set insert mode (":set im") and I mapped esc in insert mode to unset insert mode (:set im) Well then I realized if you hit "i" in command mode, escape woulding work the first time. So here's the code to add to your vimrc:
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 295(xsd:integer)
Author
  • atkinss
Complexity
  • basic
Created
  • 2002-08-03(xsd:date)
ID
  • 297(xsd:integer)
NEXT
  • 298(xsd:integer)
Rating
  • 2(xsd:integer)
abstract
  • First, I want to start in insert mode. Well "set im!" in my vimrc did the job, but I lost the escape key. Second, I have found that often times, when I'm in command mode, I hit escape trying to get back into insert mode. I am always rewarded with a beep, telling me once again I made that mistake. So I mapped esc in command mode to set insert mode (":set im") and I mapped esc in insert mode to unset insert mode (:set im) Well then I realized if you hit "i" in command mode, escape woulding work the first time. So here's the code to add to your vimrc: " Start in insert mode and " set escape to switch to " command mode or back to " insert. set im! map :set im!:echo map i :set im!:echo map! :set im!:echo map a :set iml:echo map A :set im$:echo map o :set im$:echo map O :set im^:echo k I found that I needed all of these so that scripts would work correctly and such. Don't forget to change your other scripts to use rather than .
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