Monday, October 7, 2013

Re: ESC key stopped working -- any alternate for menuless vim to get to normal mode?


On Oct 8, 2013 7:55 AM, "Tony Mechelynck" <antoine.mechelynck@gmail.com> wrote:
>
> On 08/10/13 05:07, Andrei Olsen wrote:
>>
>> On Tuesday, October 8, 2013 4:44:48 AM UTC+2, Suresh Govindachar wrote:
>>>
>>> Hello,
>>>
>>>
>>>
>>> For some unknown reason, my ESC key does not work -- neither on the
>>>
>>> laptop keyboard nor on an external keyboard.  Is there an alternate to
>>>
>>> make VIM (without any menus) get back to normal mode?
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> --Suresh
>>
>>
>> This should help:
>> http://vim.wikia.com/wiki/Avoid_the_escape_key
>>
>
> Yes, that wiki page has the info almost at the top.
>
> FWIW, my own Esc key is broken (the electronics are OK but the key itself has come unstuck then got lost). In programs other than Vim I actuate it, when needed, with the tail end of a teaspoon. In Vim I could use Ctrl+[ (the ASCII synonym for Esc, which to Vim is just the same thing) except that on this Belgian AZERTY keyboard, [ is AltGr+Dead^ which makes the Ctrl+[ combo a little awkward to use; so I use Ctrl+C instead.

The CTRL-C has a known disadvantage of not triggering abbreviations and InsertLeave event.

I would really suggest to switch to my scheme where ESC is located on left Control and Left Control is located on Caps Lock, no matter whether or not your escape key works: this is more convenient variant to work.

Note: on the keyboard where I have neither Control nor Escape (Motorola Droid 4 hardware keyboard) I mapped jj to ESC. Control though is configured to reside on Volume Up (VimTouch setting).

> I've tested this (with a GTK2/Gnome2 GUI-enabled Vim, if it makes any difference) in gvim, in vim in konsole (X11 terminal by KDE), and in vim in the linux console (pure-text non-X11 terminal); Ctrl-C works identically in all three AFAICT.
>
> It is mentioned at several places in the help that on DOS/Windows, Ctrl-Break works the same way too, which allows to use Ctrl-C as the {lhs} of a mapping to do something else (e.g. if you use the infamous mswin.vim, which remaps Ctrl-C to copy-to-clipboard, i.e. "+y or similar).
>
> Best regards,
> Tony.
> --
> Cure the disease and kill the patient.
>                 -- Francis Bacon
>
>
> --
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
> --- You received this message because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
 
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: