Compiler-скрипт для bash(само собой, он ничего не компилирует, просто находит синтаксические ошибки):
" Vim Compiler File
if exists("current_compiler")
finish
endif
let current_compiler = "bash"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cpo_save = &cpo
set cpo&vim
CompilerSet makeprg=bash\ -n\ %
CompilerSet errorformat=%f:\ line\ %l:\ %m
let &cpo = s:cpo_save
unlet s:cpo_save
|