Added shellcheck with vim integration

This commit is contained in:
Jonas Forsberg 2020-10-13 08:07:01 +02:00
parent 7f348b0268
commit a4bbc226f2
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 7 additions and 0 deletions

6
.vimrc
View File

@ -144,6 +144,12 @@ if has("autocmd")
" Set filetype tab settings " Set filetype tab settings
autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et autocmd FileType python,doctest set ai ts=4 sw=4 sts=4 et
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" ShellCheck settings
autocmd FileType sh set makeprg=shellcheck\ -f\ gcc\ %
autocmd FileType sh au BufWritePost * :silent make | redraw!
autocmd FileType sh au QuickFixCmdPost [^l]* nested cwindow
autocmd FileType sh au QuickFixCmdPost l* nested lwindow
endif endif

View File

@ -17,3 +17,4 @@ packages:
pattern:devel_basis: { status: installed } pattern:devel_basis: { status: installed }
wireguard-tools: { status: installed } wireguard-tools: { status: installed }
myspell-sv_SE: { status: installed } myspell-sv_SE: { status: installed }
ShellCheck: { status: installed }