5 ms·
> if you are having trouble with getting into and out of insert mode, maybe Vim isn't for you. I've got a question there actually. The only thing that throws o
by Shared404 6y ago
> if you are having trouble with getting into and out of insert mode, maybe Vim isn't for you.
I've got a question there actually. The only thing that throws off my flow while using Vim is exiting insert mode, as my keyboard has an inconvenient esc key. Is there a better way to exit? I've done some cursory looking but haven't found anything that looks useful.
(Remapping my keyboard isn't a viable option, as I game on my machine sometimes, and occasionally need weirdly specific keys.)
- jolmg 6y agoCtrl-C and Ctrl-[ also work by default, but personally I use CapsLock after doing `setxkbmap -option caps:escape`. > Remapping my keyboard isn't a viable option, as I game on my machine sometimes You can also map something specifically on vim with :imap/:vmap/:cmap.
- ilostmymangoman 6y agoPlease note that Ctrl-C does not do the same thing as Esc or Ctrl-[. More info: https://unix.stackexchange.com/questions/53633/does-using-ctrlc-instead-of-esc-to-exit-insert-mode-break-anything-in-vi https://unix.stackexchange.com/questions/53633/does-using-ct...
- jolmg 6y ago> Quit insert mode, go back to Normal mode. Do not check for abbreviations. Does not trigger the InsertLeave autocommand event. Well, it's the same if neither you nor a plugin uses abbreviations nor InsertLeave. Also, if you don't need that particular behavior of <C-c>, you can do `:map <C-c> <Esc>` to make it behave exactly the same.
- krysp 6y agoThe best remap in my vimrc: " Map jk to ESC in insert mode inoremap jk <esc> Once you've finished what you wanted to insert just hit jk. The combination never occurs in the English language and is right on the home row :)
- keithnz 6y agoI remap capslock as escape, using autohotkey, and I game a lot, the dyson sphere program was the first game that actually had a problem, so you can either turn the script off while playing, or make the script smarter to not be active during the game. Having said that, it is worth getting used to Ctrl-[ which is the same thing, and is a standard binding which is useful when you are not on your own machine.