.vim/compiler/vale.vim

Wed, 22 Feb 2023 12:41:04 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 22 Feb 2023 12:41:04 -0600
changeset 1043
e55463fb35e2
parent 659
f3e2c22ea809
permissions
-rw-r--r--

Add tag and omni, fix tab again

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