Red Hat Bugzilla – Bug 227469
Vim 'showmatch' broken with rxvt-unicode and termcap is to blame
Last modified: 2007-11-30 17:11:56 EST
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):
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
The cursor appears in the wrong place.
The cursor should indicate where you're about to insert or delete.
Setting the terminal time to 'rxvt' fixes the problem. Vim is using
/etc/termcap, the rxvt-unicode termcap entry needs help.
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.
vim-7.0.191-1.fc6 will be built with ncurses, but it'll take some time to get
to the mirrors