3 ms·
Ctrl-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 optio
by jolmg 6y ago
Ctrl-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.