flaw fixed

This commit is contained in:
Yggdroot
2014-02-08 15:37:37 +08:00
parent 9704d10598
commit ed4ac3fbbd
2 changed files with 4 additions and 8 deletions

View File

@@ -14,8 +14,8 @@ endif
let g:indentLine_loaded = 1
let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" ? '|' : '|'))
let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" ? '|' : '|'))
let g:indentLine_char = get(g:,'indentLine_char',(&encoding is# "utf-8" ? '¦' : '|'))
let g:indentLine_first_char = get(g:,'indentLine_first_char',(&encoding is# "utf-8" ? '¦' : '|'))
let g:indentLine_indentLevel = get(g:,'indentLine_indentLevel',10)
let g:indentLine_enabled = get(g:,'indentLine_enabled',1)
let g:indentLine_fileType = get(g:,'indentLine_fileType',[])
@@ -61,7 +61,8 @@ function! s:SetIndentLine()
let space = &l:shiftwidth is 0 ? &l:tabstop : &l:shiftwidth
execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine'
execute 'syntax match IndentLine /^\@! \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char
execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char
execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char
if g:indentLine_showFirstIndentLevel
execute 'syntax match IndentLine /^ / contained conceal cchar=' . g:indentLine_first_char
endif

View File

@@ -90,11 +90,6 @@ g:indentLine_maxLines *g:indentLine_maxLines*
the performance better.
Default value is 3000.
g:indentLine_faster *g:indentLine_faster*
If you want the performance better, you can set the value as
1, default value is 0. But better performance may bring little
issue with it.
g:indentLine_noConcealCursor *g:indentLine_noConcealCursor*
This variable toggles cursor lines behavior. If variable
exists, then cursorline will be above conceal chars.