Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is a portion of my .vimrc :

set background=dark
set cul
hi CursorLine term=underline cterm=underline gui=underline

On Linux, vim displays fine and the cursor line is underlined with a thin white line. Using the same .vimrc file on Windows (under cygwin), the cursor line has a dark red background instead of being underlined. No amount of playing with hi CursorLine seems to do the trick. Is there a way to underline the current line on Cygwin/Windows or is that a limitation of the Windows command window?

share|improve this question
1  
What is your version of Cygwin and VIM? Those commands as given work fine for Cygwin 1.7.9-1 + Vim 7.3 running within mintty. – Darren Hall Jul 15 '11 at 16:53
up vote 3 down vote accepted

This is a failing in the Windows console; it has no way to render underlined text, but uses colors instead.

With an XTerm or other terminal software the underlining should work fine as long as you have

:set cursorline
share|improve this answer
    
You are right. I use minTTY now and it looks fine. Thanks. – Fred Nov 22 '11 at 21:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .