Red Hat Bugzilla – Bug 473977
vim incorrectly linked to libtermcap instead of libncurses
Last modified: 2013-04-12 15:58:25 EDT
Description of problem:
vim is apparently linked to libtermcap instead of libcurses or libncurses (preferable). This causes many vim to have incorrect capabilities under many values for TERM.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. export TERM=putty
3. :echo t_Co
If you set TERM=xterm, you get the expected results. Also reproducible for putty-256color vs xterm-256color, and others. :version shows +terminfo but the Linking: section shows -ltermcap. On other platforms (AIX, Solaris) it indicates -lncurses or -lcurses.
This problem is also in RHEL4. I do not have RHEL3 anywhere to check that.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.