~gpanders/dotfiles

ref: c597c6af484332091f44675247d97e9a404e5d62 dotfiles/vim/.vim/after/plugin/dispatch.vim -rw-r--r-- 444 bytes
c597c6afGreg Anders [vim] Add shellcheck linter for sh files 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
if !exists('g:loaded_dispatch')
  finish
endif

augroup Dispatch
  autocmd!

  " C/C++
  autocmd FileType c,cpp let b:dispatch = 'cppcheck %:S'

  " Python
  autocmd FileType python let b:start = 'ipython'
                      \ | let b:dispatch = 'pylint -f parseable -s no -- %:S'

  " TeX
  autocmd FileType tex let b:dispatch = 'chktex -q -v0 -- %:S'

  " Bash
  autocmd FileType sh let b:dispatch = 'shellcheck -f gcc -- %:S'
augroup END