Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 2 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.