.vim/compiler/vale.vim

Sat, 30 Dec 2017 20:56:50 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 30 Dec 2017 20:56:50 -0500
changeset 665
807f6539d9cc
parent 659
f3e2c22ea809
permissions
-rw-r--r--

housekeeping

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