> On Mon, 21 Feb 2011, Chris Jones wrote:
>
>> On Mon, Feb 21, 2011 at 03:57:17AM EST, Erik Christiansen wrote:
>>> On Sun, Feb 20, 2011 at 02:37:33PM -0500, Chris Jones wrote:
>>
>> [..]
>>
>>> Buuuut, I don't understand how <Esc> becomes alt/meta, and my vim
>>> needs:
>>
>>> :map <M-j> gj
>>>
>>> to gain the described benefit.
>>
>> I vaguely remember having problems with <M-> mappings at one point and
>> discovered that <Esc> worked.
>>
>> Too busy to look into it and for consistency's sake continued using the
>> latter syntax.
>>
>> Time I revisited and straightened this out.. ;-)
>
> Explanations at:
> :help :map-alt-keys
> :help xterm-8bit
>
> Gist: Depending on settings, some terminal emulators represent
> <Alt>+<key> as <key> with it's 8th bit set. Others represent <Alt>+<key>
> as <Esc> followed by <key>.
Ah.. thanks.
But I meant, figure out why I did this in the first place.
Broken terminal, bad terminfo entry, questionable choice in X's
resources, possibly GNU/screen.. I don't remember.
As to benefiting by the content of the Vim help files.. I'm afraid it
would require first and foremost understanding how terminals work. And
unforunately that would take much longer than reading them. :-(
Naturally, the proper mapping is the one indicated above by the OP.
cj
--
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
No comments:
Post a Comment