disable ESC key?

97 views
Skip to first unread message

Chris Lott

unread,
Nov 4, 2012, 3:13:45 PM11/4/12
to vim...@googlegroups.com
I'd like to disable the ESC key in interactive mode (I only want to do
so in gui), but the following, which seems like it should work,
doesn't seem to do anything:

:inoremap <esc> <nop>

ideas?

c
--
Chris Lott <ch...@chrislott.org>

Tony Mechelynck

unread,
Nov 5, 2012, 10:22:55 AM11/5/12
to vim_mac
And how would you go back to Normal mode?

Or do you want to never use Normal mode and always remain in Insert
mode, changing Vim to a sort of Notepad clone? See :help -y

Best regards,
Tony.
--
If you don't care where you are, then you ain't lost.

Chris Lott

unread,
Nov 5, 2012, 11:15:09 AM11/5/12
to vim...@googlegroups.com
On Mon, Nov 5, 2012 at 6:22 AM, Tony Mechelynck
<antoine.m...@gmail.com> wrote:
> On Nov 4, 9:14 pm, Chris Lott <ch...@chrislott.org> wrote:
>>
>> :inoremap <esc> <nop>
>>
>> ideas?
>>
>
> And how would you go back to Normal mode?
>
> Or do you want to never use Normal mode and always remain in Insert
> mode, changing Vim to a sort of Notepad clone? See :help -y
>

Neither: I've mapped `jk` to ESC -- I'm just trying to train my
fingers and, like disabling the arrow keys, disabling the ESC key is
a good way to do that! I solved the problem, though, so all is well.

Derek Ashley Thomas

unread,
Nov 6, 2012, 5:45:19 PM11/6/12
to vim...@googlegroups.com
I didn't realize this was different for others since I started using a mac in Japan, but the control key on the Japanese keyboard is in the perfect location by design. :) Who needs a caps-lock anyway?


On Wed, Nov 7, 2012 at 7:04 AM, Jang-hwan Kim <jang...@gmail.com> wrote:
FWIW, Pressing Ctrl+[ also behaves as ESC, without any additional mapping.

Once you get used to it, you'll never have to stretch your left arm to escape again. Especially when you bind the Control key to Caps Lock key. ;)

--
You received this message from the "vim_mac" 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

Tony Mechelynck

unread,
Nov 7, 2012, 2:39:18 PM11/7/12
to vim_mac
On Nov 6, 11:46 pm, Derek Ashley Thomas <derekatho...@gmail.com>
wrote:
> [...] Who needs a caps-lock anyway? http://www.apple.com/jp/keyboard/

Me for one. For titles or for text in all caps such as Unicode
codepoint names or Bugzilla statuses and resolutions.

I suppose though, that if I were writing mostly in CJK scripts (kanji/
hanzi/hanja - hiragana - katakana - hangeul) I would have much less
use of it.


Best regards,
Tony.
--
Money is the root of all evil, and man needs roots
Reply all
Reply to author
Forward
0 new messages