On 20/07/11 12:51 AM, Ben Schmidt wrote:
On 7/07/11 12:00 PM, Ben Schmidt wrote:
On 6/07/11 11:40 PM, Ben Schmidt wrote:
On 4/07/11 10:56 PM, Tim Chase wrote:
On 07/04/2011 03:07 AM, Kent wrote:
last weekend I finally did the switch from .vim to
vim-addon-manager. after the change, I made some small tests,
almost everything looks fine. but the arrow key don't move
cursor in INsert mode any longer, just ouput A, B, C, and D. I
remembered that could be the vi-compatible problem.
This sounds suspiciously like your terminal is sending an escape
sequence to move the cursor, and that the escape is being eaten.
I just realised I'm seeing this, as I pressed an arrow key by mistake (I
never usually use them)!
So this may be a recent regression.
Which Vim versions are you using?
I might try to do a bisect with Mercurial to identify which changeset
introduced the problem anyway.
Hmm. No, I don't think this is it. I tried doing a bisect, but trying to
find a good changeset didn't really work--Vim 7.3.2 has the problem, and
I definitely didn't experience the behaviour that long ago. I get the
problem with -u NONE, so it's not just configuration either. So I don't
know what's causing it yet.
Making a little progress tracking this down. For me it happens when I
start Vim normally, or with -u NONE or with -N. However, if I use
-u NONE -N (both options together), the problem does not occur.
I'll post again if I make more progress. In the meantime, though, does
that set of switches fix it for others experiencing this problem?
Update: In my case, it is the following in my .vimrc that is causing the
problem:
inoremap <expr> <Esc> pumvisible()?"\<C-E>":"\<Esc>"
I added this fairly recently as I started using completion more and
wanted to control the menu differently to how Vim usually does. I
thought it worked, but possibly I only tested in MacVim, not realising
it breaks things in terminal Vim.
No idea how to solve that yet. If anyone has any ideas, please let me
know. Mind you, it probably doesn't matter much: I hadn't noticed it was
broken until I tried it in response to the original post, so I obviously
don't use it much--not at all in the past month or so!
The thing about compatible mode seems to have been a red herring in my
case, but I tracked that down, too. When in compatible mode 'esckeys' is
reset so the arrows don't work. Issuing :set nocp or :set esckeys fixes
it.
Ben.
--
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