Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122562 - vim-core-6.4: set C-Left, C-Right when TERM="gnome"
Summary: vim-core-6.4: set C-Left, C-Right when TERM="gnome"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 119872
  Show dependency tree
 
Reported: 2006-02-12 08:04 UTC by Ed Catmur
Modified: 2006-03-25 12:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vimrc-term-keys.patch (vimrc-term-keys.patch,706 bytes, patch)
2006-02-12 08:27 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2006-02-12 08:04:31 UTC
When gnome 2.14 hits portage, gnome-terminal will set TERM="gnome" (dang has confirmed this).

I've been testing with TERM=gnome and have discovered that Ctrl-Left, Ctrl-Right do not work when running vim in a gnome-terminal. (They should do back/forward-WORD, like B, W, but work in insert mode - useful.)

vim 6.4 appears to - when TERM is xterm - read the key settings for these and other esoteric keys from its builtin termcap, rather than from terminfo. (While terminfo could provide these, vim assumes two-character capability codes, a termcap holdover?)

So far as I can tell the easiest way to fix this would be to set <C-Left>, <C-Right> in /etc/vim/vimrc if TERM=gnome.

I attach a patch. Watch out when opening it; it contains ESC characters (\033), since (apparently) termcap-type stuff has to be set verbatim.
Comment 1 Ed Catmur 2006-02-12 08:27:54 UTC
Created attachment 79570 [details, diff]
vimrc-term-keys.patch

Tree patch (to app-editors/vim-core/files/vimrc-r2)
Comment 2 Ciaran McCreesh 2006-02-13 00:58:40 UTC
I'll do a new vimrc -r for this I think. Hopefully there'll be a new set of vim6 packages with fixes for bug #120482, bug #117748, bug #120409 soon.
Comment 3 Ciaran McCreesh 2006-03-25 12:34:59 UTC
Included in vim 7 beta. I suspect that we won't be doing another 6.x release now. Thanks muchly.