aboutsummaryrefslogtreecommitdiff
path: root/vim/compiler/sh.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-17 01:01:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-17 01:01:12 +1200
commit37ae33b03cb8f7a0ea591c56fae48c5bcb588704 (patch)
tree2ddd07cd9dd348fa4f251d4b83960e24cf75d30f /vim/compiler/sh.vim
parentMerge branch 'release/v0.53.0' (diff)
parentRegenerate dotfiles(7) manual (diff)
downloaddotfiles-37ae33b03cb8f7a0ea591c56fae48c5bcb588704.tar.gz
dotfiles-37ae33b03cb8f7a0ea591c56fae48c5bcb588704.zip
Merge branch 'release/v0.54.0'v0.54.0
* release/v0.54.0: Regenerate dotfiles(7) manual Bump VERSION Add note about compiler scripts Arrange for tidiers to hold window position Update markdown_autoformat.vim Update surround.vim Completely overhaul after/ftplugin files Use short-circuit for no-mapping check Correct g:current_compiler setting Consistently require 'nocompatible' for ftplugins Upgrade insert_suspend_hlsearch.vim Use `function!` consistently in ftplugins Fix comments in vim/filetype.vim Set 'comments' blank by default Add Xresources filenames Add more names to Vim Bash types
Diffstat (limited to 'vim/compiler/sh.vim')
-rw-r--r--vim/compiler/sh.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/vim/compiler/sh.vim b/vim/compiler/sh.vim
new file mode 100644
index 00000000..ff5ed314
--- /dev/null
+++ b/vim/compiler/sh.vim
@@ -0,0 +1,17 @@
+if exists('g:current_compiler')
+ finish
+endif
+let g:current_compiler = 'sh'
+
+if exists(':CompilerSet') != 2
+ command -nargs=* CompilerSet setlocal <args>
+endif
+
+" 7.4.191 is the earliest version with the :S file name modifier, which we
+" really should use if we can
+if v:version >= 704 || v:version == 704 && has('patch191')
+ CompilerSet makeprg=sh\ -n\ %:S
+else
+ CompilerSet makeprg=sh\ -n\ %
+endif
+CompilerSet errorformat=%f:\ %l:\ %m