One bash script is named without file extension, NERD Commenter works fine.
Another bash script name is aaa.sa. NERD Commenter is using -- to comment a line instead of #. File syntax highlight is also wrong.
How to fix this?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityOne bash script is named without file extension, NERD Commenter works fine.
Another bash script name is aaa.sa. NERD Commenter is using -- to comment a line instead of #. File syntax highlight is also wrong.
How to fix this?
.sa
files are detected by Vim as Sather files.
You can check in Vim by issuing :verbose set filetype?
.
If you want to have your own filetypes detected matching a particular pattern, please check the faq (also other questions in the same section might be relevant for you).
Note, I find using the extension sa
for bash files confusing and un-intuitive.