tpope / vim-commentary

commentary.vim: comment stuff out
http://www.vim.org/scripts/script.php?script_id=3695
5.9k stars 214 forks source link

How about this plugin sense what type of file open and comment style change as per the open file basis #137

Closed unixbhaskar closed 4 years ago

unixbhaskar commented 4 years ago

Did I missed the already available this thing?? It might fail me.

I would like the comment style has to be changed as per the file tye open...

Say, if I open a shell file, it should comment with a #

If I open a c file it should open with c comment style(which is what is doing by default)

Or how do I change that ??? Putting an auto command in vimrc is fine ...but how to change the comment character???

Kindly shed some light. I have probably missed the much obvious ...but ....

unixbhaskar commented 4 years ago

figured it out.