complete the cylce of new syntax checking

This commit is contained in:
Barak Michener 2015-02-13 22:52:31 -05:00
parent e1073078ce
commit d6e8fb17c0
3 changed files with 111 additions and 4 deletions

24
.vimrc
View file

@ -173,7 +173,11 @@ let g:EclimCompletionMethod = 'omnifunc'
" * Syntastic
let g:syntastic_python_flake8_args='--ignore=E111'
let g:syntastic_go_checkers=['go', 'govet', 'golintc']
let g:syntastic_go_checkers=['go', 'govet', 'gonyet', 'golintc']
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 2
let g:syntastic_loc_list_height = 10
let g:syntastic_aggregate_errors = 1
" E111 = Spaces should be multiples of 4. I use 2.
" * Configure browser for haskell_doc.vim
@ -360,6 +364,18 @@ function! QFixToggle(forced)
endif
endfunction
" Toggle LocationList
command -bang -nargs=? LFix call LFixToggle(<bang>0)
function! LFixToggle(forced)
if exists("g:lfix_win") && a:forced == 0
unlet! g:lfix_win
lclose
else
execute "lopen " . 10
let g:lfix_win = "t"
endif
endfunction
" Make the Quickfix window respond well to commands (for instance, q to close,
" Enter to select, etc). In tandem with the above.
augroup QFixToggle
@ -511,13 +527,13 @@ inoremap jj <Esc>
" Leader key functions
" See quickfix.
nnoremap <Leader>ff :QFix<CR>
nnoremap <Leader>ff :LFix<CR>
" See quickfix.
nnoremap <Leader>ss :SyntasticSetLoclist<CR>
" Next quickfix.
nnoremap <Leader>fn :cnext<CR>
nnoremap <Leader>fn :lnext<CR>
" Prev quickfix.
nnoremap <Leader>fp :cprev<CR>
nnoremap <Leader>fp :lprev<CR>
" Ack (grep) for the word under the cursor.
nnoremap <Leader>aw :exe 'Ack ' . expand('<cword>')<CR>
" Ack prompt.