Update .vimrc
[my-vim-dotfolder.git] / compiler / swi_prolog.vim
blob8d51e72e05635fa4f3eb80687f6486a583ff0fe0
2 " Vim compiler file
3 " Language:             Prolog
5 if exists("current_compiler")
6   finish
7 endif
8 let current_compiler = "prolog"
10 if exists(":CompilerSet") != 2          " older Vim always used :setlocal
11   command -nargs=* CompilerSet setlocal <args>
12 endif
14 let s:cpo_save = &cpo
15 set cpo-=C
17 CompilerSet makeprg=swipl\ -s\ %\ -g\ \'halt\'
19 CompilerSet errorformat=
20         \%W%>Warning:\ %f:%l:,
21         \ERROR:\ %f:%l:%c:\ %m,
22         \%Z%m
24 let &cpo = s:cpo_save
25 unlet s:cpo_save
27 " vim: nowrap sw=2 sts=2 ts=8: