Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 296523

Summary: xterm arrow keys in vim jump by word instead of by character
Product: Gentoo Linux Reporter: thorn <thor_n>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: bugs.gentoo.org, dickey
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description thorn 2009-12-11 13:43:06 UTC
x11-terms/xterm-243, x11-terms/xterm-250:
in vim left and right arrows should jump by 1 character but they jump by 1 word.

This is an recurring bug. It is fixed in xterm-242 but it's here again in xterm-243 and xterm-250.

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-12-11 14:51:35 UTC
Try -253.
Comment 2 Jiri Pittner 2009-12-17 10:52:17 UTC
(In reply to comment #0)
> x11-terms/xterm-243, x11-terms/xterm-250:
> in vim left and right arrows should jump by 1 character but they jump by 1
> word.
> 
> This is an recurring bug. It is fixed in xterm-242 but it's here again in
> xterm-243 and xterm-250.
> 
> Reproducible: Always
> 
I have -253, bug is still there.
Comment 3 Thomas Dickey 2009-12-22 10:03:23 UTC
It's not that the bug is "still there", but that the default
for the allowTcapOps resource changed (per Bram's request).
If you have a reproducible case where this is a problem,
you should assign it to vim.
Comment 4 Patrick Lauer gentoo-dev 2009-12-30 12:34:04 UTC
So what do we do with this? Is it a bug?
Comment 5 Thomas Dickey 2009-12-30 13:31:36 UTC
It sounds like a bug.  But it's less likely that xterm is sending
the information than that the user's configuration for vim is
causing vim to get confused.  I've seen this bug in more than
one case, without getting much useful information other than
that it was fixed by the user changing something in their .vimrc
Comment 6 Thomas Dickey 2009-12-30 15:46:35 UTC
(minor correction: it's less likely that xterm is sending
*incorrect* information than the alternatives)
Comment 7 William Waisse 2010-08-05 07:03:43 UTC
same problem here after upgrading my gentoo servers

adding :
set term=builtin_ansi

in 
/etc/vim/vimrc

fixed the arrow keys
( tips found on http://vim.wikia.com/wiki/Fix_broken_arrow_key_navigation_in_insert_mode)