First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 122562
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Vim Maintainers <vim@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ed Catmur <ed@catmur.co.uk>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
vimrc-term-keys.patch vimrc-term-keys.patch patch Ed Catmur 2006-02-12 08:27 0000 706 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 122562 depends on: Show dependency tree
Bug 122562 blocks: 119872
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-12 08:04 0000
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 From Ed Catmur 2006-02-12 08:27:54 0000 -------
Created an attachment (id=79570) [details]
vimrc-term-keys.patch

Tree patch (to app-editors/vim-core/files/vimrc-r2)

------- Comment #2 From Ciaran McCreesh 2006-02-13 00:58:40 0000 -------
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 From Ciaran McCreesh 2006-03-25 12:34:59 0000 -------
Included in vim 7 beta. I suspect that we won't be doing another 6.x release
now. Thanks muchly.

First Last Prev Next    No search results available      Search page      Enter new bug