mirror of
https://github.com/Yggdroot/indentLine.git
synced 2026-01-30 22:55:22 +08:00
change color in dark background to grey40
This commit is contained in:
50
README.md
50
README.md
@@ -1,25 +1,25 @@
|
|||||||
indentLine
|
indentLine
|
||||||
==========
|
==========
|
||||||
|
|
||||||
This plugin is used for displaying thin vertical lines at each indentation leve for code indented with spaces.
|
This plugin is used for displaying thin vertical lines at each indentation leve for code indented with spaces.
|
||||||
For code indented with tabs, I think there is no need to support it, using :set list lcs=tab:\\|\ (here is a space) can
|
For code indented with tabs, I think there is no need to support it, using :set list lcs=tab:\\|\ (here is a space) can
|
||||||
achieve it.
|
achieve it.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
This plugin takes advantage of newly provided conceal feature in Vim 7.3, so Vim 7.3 with conceal feature is needed.
|
This plugin takes advantage of newly provided conceal feature in Vim 7.3, so Vim 7.3 with conceal feature is needed.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
To install the plugin just copy indentLine.vim into plugin directory.
|
To install the plugin just copy indentLine.vim into plugin directory.
|
||||||
|
|
||||||
|
|
||||||
## Setting custom line colors
|
## Setting custom line colors
|
||||||
For gvim, hi Conceal guifg=(color you like) guibg=NONE
|
For gvim, hi Conceal guifg=(color you like) guibg=NONE
|
||||||
|
|
||||||
For vim, hi Conceal ctermfg=(color you like) ctermbg=NONE
|
For vim, hi Conceal ctermfg=(color you like) ctermbg=NONE
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
<img src="http://i.imgur.com/WQqhH.jpg" width="600" height="400" alt="" />
|
<img src="http://i.imgur.com/WQqhH.jpg" width="600" height="400" alt="" />
|
||||||
<img src="http://i.imgur.com/zhV1v.jpg" width="600" height="400" alt="" />
|
<img src="http://i.imgur.com/zhV1v.jpg" width="600" height="400" alt="" />
|
||||||
<img src="http://i.imgur.com/cENlq.jpg" width="600" height="400" alt="" />
|
<img src="http://i.imgur.com/cENlq.jpg" width="600" height="400" alt="" />
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ set concealcursor=inc
|
|||||||
|
|
||||||
function! <SID>InitColor()
|
function! <SID>InitColor()
|
||||||
if &bg == 'light'
|
if &bg == 'light'
|
||||||
hi Conceal ctermfg=7 ctermbg=NONE guifg=Gray guibg=NONE
|
hi Conceal ctermfg=7 ctermbg=NONE guifg=Grey guibg=NONE
|
||||||
else
|
else
|
||||||
hi Conceal ctermfg=8 ctermbg=NONE guifg=DarkGray guibg=NONE
|
hi Conceal ctermfg=8 ctermbg=NONE guifg=Grey40 guibg=NONE
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user