.vim/compiler/vale.vim

Thu, 16 Aug 2018 23:35:28 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 16 Aug 2018 23:35:28 -0400
changeset 716
7ea1f4410682
parent 659
f3e2c22ea809
permissions
-rw-r--r--

no more <cr> weirdness

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