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:
Attributes | Values |
---|
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
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Author
| |
Complexity
| |
Created
| |
ID
| |
NEXT
| |
Rating
| |
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 .
|