diff --git a/after/plugin/indentLine.vim b/after/plugin/indentLine.vim index 9869fde..b638df4 100644 --- a/after/plugin/indentLine.vim +++ b/after/plugin/indentLine.vim @@ -5,6 +5,7 @@ " " Description: To show the indent lines +"{{{1 global variables if !has("conceal") || exists("g:indentLine_loaded") finish endif @@ -30,6 +31,7 @@ endif set conceallevel=1 set concealcursor=inc +"{{{1 function! InitColor() function! InitColor() if !exists("g:indentLine_color_term") if &bg ==? "light" @@ -55,6 +57,7 @@ function! InitColor() exec "hi Conceal guifg=" . gui_color . " guibg=NONE" endfunction +"{{{1 function! SetIndentLine() function! SetIndentLine() if !exists("b:indentLine_enabled") let b:indentLine_enabled = g:indentLine_enabled @@ -69,6 +72,7 @@ function! SetIndentLine() endfor endfunction +"{{{1 function! ResetWidth(...) function! ResetWidth(...) if a:0 > 0 let &l:shiftwidth = a:1 @@ -77,6 +81,7 @@ function! ResetWidth(...) call SetIndentLine() endfunction +"{{{1 function! IndentLinesToggle() function! IndentLinesToggle() if b:indentLine_enabled let b:indentLine_enabled = 0 @@ -87,6 +92,7 @@ function! IndentLinesToggle() endif endfunction +"{{{1 function! Setup() function! Setup() if !exists("b:indentLine_set") let b:indentLine_set = 1 @@ -94,6 +100,7 @@ function! Setup() endif endfunction +"{{{1 commands autocmd BufWinEnter * call Setup() autocmd BufRead,ColorScheme * call InitColor()