.vim/compiler/vale.vim

Thu, 28 Oct 2021 21:46:26 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 28 Oct 2021 21:46:26 -0500
changeset 953
e033f9ce0d8c
parent 659
f3e2c22ea809
permissions
-rw-r--r--

Simplify ag/grep setup

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