I am trying to run
shellcheck upon exiting vim, however I do not get the output of the command I run.
I've tested running something like
touch foo instead, and I managed to see the file being created, so it seems the problem is that the output is written elsewhere and cleared up on exit.
So far I've tried this (and some variants) in my
au bufwinleave *.sh call system("shellcheck %")
au bufwinleave *.sh exec "!shellcheck %"