Answer by cxw for Apply full vim colorization for bash scripts that have no...
Putlet g:is_bash = 1in your .vimrc. That sets the default filetype for unknown shell scripts to bash. See full explanation in :help ft-bash-syntaxFor those curious about the internals, at least on my...
View ArticleAnswer by user530873 for Apply full vim colorization for bash scripts that...
Run :setf shYou may want to place this at the top of the files (if you want no shebang):# vim:ft=sh
View ArticleApply full vim colorization for bash scripts that have no shebang line
So in my project there are many bash script files that are sourced, but never run directly, so they get no shebang line and no execute bit set. Vim colors them a little bit, but doesn't use the full...
View Article
More Pages to Explore .....