Skip to content

Instantly share code, notes, and snippets.

@VTimofeenko
Created January 13, 2021 02:48
Show Gist options
  • Save VTimofeenko/e645a85936d5a07cf8e9b5d332e0cc4c to your computer and use it in GitHub Desktop.
Save VTimofeenko/e645a85936d5a07cf8e9b5d332e0cc4c to your computer and use it in GitHub Desktop.
Making vim-syntastic work with ebuilds
""" ebuild
augroup ebuild_vimrc
autocmd BufRead,BufNewFile *.ebuild set filetype=ebuild
" plugin
autocmd FileType ebuild
\ set statusline+=%#warningmsg# |
\ set statusline+=%{SyntasticStatuslineFlag()} |
\ set statusline+=%* |
\ let g:syntastic_sh_shellcheck_args = '-s bash -e "SC2034,SC2016,SC2191,SC2037"' |
\ let g:syntastic_always_populate_loc_list = 1 |
\ let g:syntastic_auto_loc_list = 1 |
\ let g:syntastic_check_on_open = 1 |
\ let g:syntastic_check_on_wq = 0 |
\ let b:auto_save = 1
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment