You are not logged in.

#1 2011-01-09 23:03:58

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

[SOLVED] Vim search history inserts A

Hello,

I have the following problem with Vim:

when I press the up arrow in search mode (/<Up>), Vim switches to the insert mode and enters the letter A in a new line above the cursor. When I press /<Down>, the same happens, only the letter is B.

Surprisingly, arrows work just fine for browsing command history both in Vim and in Bash.
All mappings for arrows in my .vimrc are commented out, I've deleted the appropriate files in ~/.vim/view and in ~/.vim-tmp where I store backups and such.
I use Sakura but the same happens in urxvt and in gnome-terminal. In Vim, term is set to xterm.

Can you help me please?

Last edited by caminoix (2011-01-10 22:51:05)

Offline

#2 2011-01-09 23:15:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] Vim search history inserts A

make sure you have 'set nocompatible' in your .vimrc

Offline

#3 2011-01-09 23:18:14

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: [SOLVED] Vim search history inserts A

I have 'set nocompatible' in my .vimrc.
When I open a file and do :set compatible, arrows do nothing when in search mode. When I go back to nocompatible, the problem returns.

Offline

#4 2011-01-10 00:56:38

frabjous
Member
Registered: 2010-07-13
Posts: 367

Re: [SOLVED] Vim search history inserts A

What does:

:verbose cmap <Up>

show? Anything?

Do you still get the problem if you start vim with:

vim -u NONE

to disable loading .vimrc and all plugins?

Last edited by frabjous (2011-01-10 00:58:40)

Offline

#5 2011-01-10 01:06:11

caminoix
Member
From: cracow, poland
Registered: 2005-07-12
Posts: 162
Website

Re: [SOLVED] Vim search history inserts A

Wonderful, thank you!

":verbose cmap <Up>" returned "No mapping found" but disabling plugins was what I haven't thought about. It turns out it was the SearchComplete plugin.

Thanks a lot! smile

Offline

Board footer

Powered by FluxBB