Saturday, March 7, 2015

Re: Pressing key 'T' prints 7 in VIM 7.4

On 2015-03-07 20:23, Avinash Sonawane wrote:
>> On 2015-03-01 12:49, Avinash Sonawane wrote:
>>> I am experiencing an odd behavior in VIM. Whenever I press key
>>> 'T' it prints 7 on the screen like a leetspeak. But the key 'T'
>>> works fine in other applications like gedit/firefox etc. So
>>> clearly not a keyboard problem. How do I rectify this problem as
>>> I am not able to use any of the :set commands.
>
> Thanks for the reply. But got help from #vim. The problem was with
> TowerOfHanoi, GameOfLIfe etc. macros located at
> /usr/share/vim/vim74/macros which didn't work BTW.
>
> But I still don't understand why to bundle macros with default
> standard VIM package which don't work (Additionally make VIM behave
> in weird ways)?

I'm not sure how you got them loaded without requesting/sourcing them
explicitly.

> I don't find solace in "These are old toys which once worked but
> then nobody paid attention to them" which I got from #vim. If they
> don't wok then simply DO NOT include them in standard VIM package.

They do work. They're simply fun little toys that demonstrate the
flexibility of vimscript, but they're not intended to be loaded every
time that you start vim.

One might complain that the mappings should all be buffer-local
mappings, which I'd agree with. Fortunately, that's a fairly easy
fix of swapping all the "map" commands for "map <buffer>" to keep
them from leaking out elsewhere.

-tim


--
--
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/d/optout.

No comments:

Post a Comment