Quantcast
Channel: Apply full vim colorization for bash scripts that have no shebang line - Super User
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Image may be NSFW.
Clik here to view.

Apply 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
Browsing all 3 articles
Browse latest View live




Latest Images