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

沒有留言:

張貼留言

[Git 常見問題] error: The following untracked working tree files would be overwritten by merge

  Source From  Here 方案1: // x -----删除忽略文件已经对 git 来说不识别的文件 // d -----删除未被添加到 git 的路径中的文件 // f -----强制运行 #   git clean -d -fx 方案2: 今天在服务器上  gi...