diff --git a/indentLine.vim b/indentLine.vim index 6b655af..a0de21f 100644 --- a/indentLine.vim +++ b/indentLine.vim @@ -5,7 +5,7 @@ " " Description: To show the indent line -if exists("g:loaded_indentLine") +if !has("conceal") || exists("g:loaded_indentLine") finish endif let g:loaded_indentLine = 1 @@ -13,7 +13,7 @@ let g:loaded_indentLine = 1 if (has("gui_running")) hi Conceal guifg=grey guibg=bg else - hi Conceal ctermfg=8 ctermbg=bg + hi Conceal ctermfg=8 endif set conceallevel=2 @@ -21,7 +21,7 @@ set concealcursor=inc function! SetIndentLine() for i in range(&shiftwidth+1, 100, &shiftwidth) - exe 'syn match IndentLine /\(^\s\+\)\@<=\%'.i.'v / conceal cchar=|' + exe 'syn match IndentLine /\(^\s\+\)\@<=\%'.i.'v / containedin=ALL conceal cchar=|' endfor endfunction