//~/.vim/compiler/xmllint.vim:
if exists("current_compiler")
finish
endif
let current_compiler = "xmllint"
setlocal makeprg=xmllint\ --valid\ --noout\?%
setlocal errorformat=%f:%l:\ %m
//~/.vim/ftplugin/xml.vim
:compiler xmllint
//用上面命令来切换.同一编译器多个命令.
//可以在vim中置为切换,用Make来异步,
两个,用compiler
设置编译器
,用Make
来运行