程式扎記: [Linux 常見問題] How do I change my Vim highlight line to not be an underline?

標籤

2015年4月22日 星期三

[Linux 常見問題] How do I change my Vim highlight line to not be an underline?

Source From Here 
Question 
In some colorschemes the current line highlighting changes background, in others, like Desert, the current line is underlined. (:set cursorline
 

I want to change the current line highlighting in Desert to use a different background color instead of underlining. How can I do that? 

Currently, I modify .vimrc
# vim ~/.vimrc
  1. set cursorline  
  2. highlight Cursorline cterm=bold  

The effect of highlight: 
 

How-To 
Update: .vimrc that solves the issue 
  1. colorscheme desert  
  2. set cursorline  
  3. hi CursorLine term=bold cterm=bold guibg=Grey40  
The highlight effect: 
 

Supplement 
How to use a vim color scheme

沒有留言:

張貼留言

網誌存檔

關於我自己

我的相片
Where there is a will, there is a way!