is there a way to define a new filetype comment for NerdCommenter in .vimrc?
It’s already working, but it would be more easy to backup config, if I can place this into .vimrc directly.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NERDCommenter is able to parse
commentstringoption, so if you have only one possible comment marker, you may put the following to the vimrc:This does not allow you to specify alternative commenting style (like
/*%s*/and//%sfor C++). In this case you should contact author of NERDCommenter and he will add your filetype into next release. This is the example of filetype support request.