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

沒有留言:

張貼留言

[Linux 常見問題] sudo: Sorry, you must have a tty to run sudo Error on a Linux and Unix

Source From  Here   Preface   I‘m trying to run the following command:  #   ssh  user@box.example.com  sudo command1 /path/to/file But, a...