]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vimrc
Vim scripts refactoring
[dotfiles.git] / vim / .vimrc
index 66b729b0ea068716dee5bbe414de7820fb346580..56b9a2113f383eec49547e8e6290f1919f452d43 100644 (file)
@@ -73,6 +73,7 @@ highlight CursorColumn ctermfg=cyan ctermbg=red
 " }}}
 
 " Statusline {{{
+let LintStatus = {-> exists("b:lint_status_func") ? b:lint_status_func() : ""}
 set laststatus=2
 set statusline=%F\ %m%r%h%w%k
 set statusline+=%{len(getqflist())?'[Q]':''}
@@ -85,10 +86,6 @@ set statusline+=%#Todo#%c%V:0x%B
 set statusline+=%#Comment#%o
 set statusline+=%#Error#%{LintStatus()}
 set statusline+=%*\ %P
-
-function! LintStatus() " it is overrided in ftplugins
-    return ""
-endfunction
 " }}}
 
 " View saving {{{