aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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