Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 227469 - Vim 'showmatch' broken with rxvt-unicode and termcap is to blame
Summary: Vim 'showmatch' broken with rxvt-unicode and termcap is to blame
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2007-02-06 06:40 UTC by Penelope Fudd
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: vim-7.0.191-1.fc6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-02-06 12:23:04 UTC

Attachments (Terms of Use)

Description Penelope Fudd 2007-02-06 06:40:50 UTC
Description of problem:
If I edit a file with vim inside the rxvt-unicode terminal window, the
matching-bracket feature moves the visible cursor away from where it should be.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. vim some-file-with-brackets (perl program?)
2. move cursor over a bracket
3. watch the cursor highlight the matching bracket, but unhighlight the bracket
you're on
Actual results:
The cursor appears in the wrong place.

Expected results:
The cursor should indicate where you're about to insert or delete.

Additional info:
Setting the terminal time to 'rxvt' fixes the problem.  Vim is using
/etc/termcap, the rxvt-unicode termcap entry needs help.

Comment 1 Miroslav Lichvar 2007-02-06 10:05:01 UTC
Yes, the entry is missing Co, AF, AB capabilities that are required to enable
color mode in vim. Problem is that termcap entries are limited in length to 1023
bytes, this is one of the reasons why we are dropping termcap in next Fedora.

Linking vim from vim-enhanced package against libncurses instead of libtermcap
would be a good solution to this issue.

Comment 2 Karsten Hopp 2007-02-06 12:23:04 UTC
vim-7.0.191-1.fc6 will be built with ncurses, but it'll take some time to get 
to the mirrors

Note You need to log in before you can comment on or make changes to this bug.