There is a plugin for fixing syntax issues with bash files. Plugin based on official sh syntax detection.
- fix highlighting functions which name contains
:
; - fix indentation for functions which name contains
:
; - fix highlighting
local
statement; - set ft=bash for
*.sh
files.
Just add following lines to your .vimrc
file:
Plug 'kovetskiy/vim-bash'
no need for configuration, install and forget.
You might be (must have!) interested in following things: