diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 808e251..aa88567 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -68,10 +68,8 @@ endfunction function! s:SetConcealOption() if ! exists("b:indentLine_ConcealOptionSet") let b:indentLine_ConcealOptionSet = 1 - if ! exists("g:indentLine_noConcealCursor") - setlocal concealcursor=inc - endif - setlocal conceallevel=2 + let &l:concealcursor = exists("g:indentLine_concealcursor") ? g:indentLine_concealcursor : "inc" + let &l:conceallevel = exists("g:indentLine_conceallevel") ? g:indentLine_conceallevel : "2" endif endfunction diff --git a/doc/indentLine.txt b/doc/indentLine.txt index 0a5ee5e..147b2e5 100644 --- a/doc/indentLine.txt +++ b/doc/indentLine.txt @@ -105,10 +105,17 @@ g:indentLine_faster *g:indentLine_faster* 1, default value is 0. But better performance may bring little issue with it. -g:indentLine_noConcealCursor *g:indentLine_noConcealCursor* +g:indentLine_concealcursor *g:indentLine_concealcursor* This variable toggles cursor lines behavior. If variable - exists, then cursorline will be above conceal chars. - Default value is not set. + exists and is empty, that is, set to '', then the indentlines + will not show up in the cursorline. + See *concealcursor*. + Default value is 'inc'. + +g:indentLine_concealleavel *g:indentLine_conceallevel* + This variable toggles the concealing behavior. + See *concealleavel*. + Default value is '2'. g:indentLine_leadingSpaceChar *g:indentLine_leadingSpaceChar* Specify a character to show for leading spaces.