aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-11 15:02:15 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-11 15:02:15 +1300
commit631538924ddd5efb4ee8333964b8324efaad7834 (patch)
treea516e03f8615a5dc5e9b210dff47e5e919b7013d
parentSet buffer type (not global type) for sh properly (diff)
downloaddotfiles-631538924ddd5efb4ee8333964b8324efaad7834.tar.gz
dotfiles-631538924ddd5efb4ee8333964b8324efaad7834.zip
Disable sh error syntax highlighting for now
Until I can figure out what's wrong with this syntax, or why the syntax highlighter thinks it's an error
-rw-r--r--vim/after/ftplugin/sh.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim
index c79dab74..61ff9ae8 100644
--- a/vim/after/ftplugin/sh.vim
+++ b/vim/after/ftplugin/sh.vim
@@ -1,3 +1,8 @@
+" Don't highlight errors for me; something not quite right here. The syntax
+" highlighter seems to flag '/baz' in '"${foo:-"$bar"/baz}"' as an error, and
+" I'm pretty sure it's not.
+let g:sh_noerror = 1
+
" If the file is not already tagged as a shell type, default to POSIX shell,
" as I never write Bourne. I would set g:is_posix here rather than b:is_posix,
" but sh.vim makes some weird assumptions about me actually meaning ksh for