X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vimrc;h=62ec6dcb0d7417b9d9922d411c08a5c7d8bacf91;hb=44c3c32ecd830b05572b3a4a7f22ba4ccb1b1f0a;hp=66b729b0ea068716dee5bbe414de7820fb346580;hpb=911992af86d8e1beec1e49305e89dd550d40e088;p=dotfiles.git diff --git a/vim/.vimrc b/vim/.vimrc index 66b729b..62ec6dc 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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 command! E Explore command! Ch cd %:p:h command! -bar -nargs=? -bang Tmp :silent vnew|setlocal buftype=nofile bufhidden=hide noswapfile buflisted filetype= modifiable +command! Gcommit Git commit