I just cloned https://github.com/vim/vim.git
I copied the various existing files bash.vim, sh.vim, zsh.vim (which I'm interested in) below my local $HOME/.vim into their respective directories syntax, indent, and ftplugin . Opening a local test file that contains (besides other things) if [[ "$1" = "$2" ]] ... x=$'\v' the above two lines were marked as containing errors; the final closing ] and the $' and terminating ' . These errors vanish if I type these two commands consecutively :set syntax=bash :set syntax=sh I wonder why that works but not a single :set syntax=sh alone. (Is that due to some persisting side-effect from the bash setting?) The errors also vanish if beforehand a #!/bin/ksh line is present. My question (or request, if allowed) would be whether the correct syntax highlighting for ksh syntax could be automatically detected without the double-"set syntax" kludge or requiring a shebang line. Thanks! I'm also curious why for bash and zsh there's own :set syntax=... possible but :set syntax=ksh disables syntax colors completely. Janis -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/DU0PR02MB10422A23108482CDC4DB1F3B8F3092%40DU0PR02MB10422.eurprd02.prod.outlook.com.
