]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vimrc
Use flake8 as linter by default
[dotfiles.git] / vim / .vimrc
index 66b729b0ea068716dee5bbe414de7820fb346580..1ce1198a16d01ea6941485d8c0e9a0c2b89ad4ac 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 {{{
@@ -161,6 +158,7 @@ vnoremap <leader>d "_d
 map Q gq
 cmap ][ '[,']
 imap <C-b> <C-x><C-o>
+imap <C-@> <C-x><C-f>
 nmap <Tab> :buffers<CR>:b<Space>
 nmap <silent> <Home> :registers<CR>
 nmap <leader>' yiwciw"<C-r>""<ESC>
@@ -172,3 +170,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