Wednesday, September 8, 2010

Re: Esc key on gvim 7.2 does not work on windows XP

Ответ на сообщение «Re: Esc key on gvim 7.2 does not work on windows XP»,
присланное в 02:09:08 09 сентября 2010, Четверг,
отправитель Benjamin R. Haskell:

What you are trying to compare? Vim launched with -u NONE will not load any
plugins, so it obviously will not have any mappings and the only ouput will be
``No mapping found'' (perhaps there is typo in this message: Russian version
could be translated as ``No mappings found'', note the `s').

About checking for something mapped to escape: check the outputs of
verbose map <ESC>
and
verbose map! <ESC>
it will not show you so many mappings as ``map'' and ``map!'' does, but will
show where mappings were defined last. And does <C-v><Esc> successfully print
`^[' in either insert mode or command line?

Текст сообщения:
> On Wed, 8 Sep 2010, albert kao wrote:
> > On Wed, Sep 8, 2010 at 4:09 PM, Tim Chase wrote:
> >> On 09/08/10 14:24, albert kao wrote:
> >>> The Esc key running on gvim 7.2 does not work on a windows XP
> >>> Professional SP3 computer.
> >>> i.e. pressing the "Esc" key does not exit the current insert mode.
> >>> "Ctrl-[" does not work either.
> >>
> >> This sounds suspiciously like a mapping interfering. First, try
> >>
> >> starting vim with no startup processed:
> >> vim -u NONE
> >>
> >> and see if you get the same behavior.
> >>
> >> If so, check your various mappings:
> >> :map
> >> :map!
> >>
> >> to see if something is mapped to <esc> or <c-[>
> >>
> >> -tim
> >
> > vim -u NONE
> >
> > has no problem with the Esc key and
> >
> > :map
> > :map!
> >
> > do not see anything mapped to <esc> or <c-[> .
>
> Is that in the 'no problem' (vim -u NONE) or the problematic case?
>
> If 'vim -u NONE' works properly and 'vim' doesn't, you should look for
> what mappings are different between the two.
>
> To make the comparison easier, you can try:
>
> vim -u NONE
>
> :redir > ~/vimnone.map.txt
> :silent! map
> :silent! map!
> :redir END
>
> vim (start how you normally start it)
>
> :redir > ~/vim.map.txt
> :silent! map
> :silent! map!
> :redir END
>
> (Then compare the vim and vimnone .map.txt files.)

No comments:

Post a Comment