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

沒有留言:

張貼留言

[ Python 文章收集 ] Function Composition in Python

Source From  Here   Preface   While I don’t consider myself a functional programming guru, all those hours spent in Haskell, Lisp and Scheme...