davejlong / cf-utils.vim

A new Vim plugin to make Vim into a full-blown CFML and CFScript IDE
20 stars 10 forks source link

Comment Types #7

Open jphustman opened 10 years ago

jphustman commented 10 years ago

Occasionally I have to resort to starting a component with <cfcomponent><cfscript>.

Automatically adding in comments puts the wrong comment type within the cfscript tag. I can't figure out how to determine whether or not we are in a cfscript tag to adjust the commentstring in https://github.com/davejlong/cf-utils.vim/blob/master/ftplugin/cfml.vim#L17

davejlong commented 10 years ago

Thanks for the report. The cfml syntax file is still mostly the original syntax file bundled with Vim. I'll try to look at this and see if I can track it down to using the /* */ and // style comments in CFScript.

Just for information's sake, how are you inserting the comments?

jphustman commented 10 years ago

I use https://github.com/scrooloose/nerdcommenter.

Make sure that you have filetype plugins enabled, as the script makes use of |'commentstring'| where possible (which is usually set in a filetype plugin).