]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vimrc
I used to use Gcommit often
[dotfiles.git] / vim / .vimrc
index 66b729b0ea068716dee5bbe414de7820fb346580..62ec6dcb0d7417b9d9922d411c08a5c7d8bacf91 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 {{{
@@ -172,3 +169,4 @@ nnoremap <C-P> <C-I>
 command! E Explore
 command! Ch cd %:p:h
 command! -bar -nargs=? -bang Tmp :silent vnew<bang>|setlocal buftype=nofile bufhidden=hide noswapfile buflisted filetype=<args> modifiable
+command! Gcommit Git commit