.vim/compiler/vale.vim

Sat, 17 Feb 2018 02:30:35 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 17 Feb 2018 02:30:35 -0500
changeset 690
d005acd0e883
parent 659
f3e2c22ea809
permissions
-rw-r--r--

also portability improvements

659
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 if exists("current_compiler")
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 finish
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 endif
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 let current_compiler = "vale"
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if exists(":CompilerSet") != 2
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 command -nargs=* CompilerSet setlocal <args>
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 endif
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 let s:savecpo = &cpo
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 set cpo&vim
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 CompilerSet makeprg=vale\ --output=line\ %
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15 let &cpo = s:savecpo
f3e2c22ea809 add vale compiler plugin
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 unlet s:savecpo

mercurial