From 631538924ddd5efb4ee8333964b8324efaad7834 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 11 Dec 2016 15:02:15 +1300 Subject: 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 --- vim/after/ftplugin/sh.vim | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vim/after/ftplugin/sh.vim') 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 -- cgit v1.2.3