mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-06 20:24:28 +08:00
flaw fixed
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user