tcomment_vim icon indicating copy to clipboard operation
tcomment_vim copied to clipboard

How to add jsp support

Open chaiguolong opened this issue 6 years ago • 1 comments

How to add jsp support. I tried adding it in default.vim Call tcomment#type#Define('jsp', g:tcomment#inline_fmt_jsp) And redefine the variable g:tcomment#inline_fmt_jsp

If !exists('g:tcomment#inline_fmt_jsp')      "Generic xml-like comments.      " :read: let g:tcomment#inline_fmt_xml = {...} "{{{2      Let g:tcomment#inline_fmt_jsp = {                  \ 'commentstring': "<%-- %s --%>",                  \ 'replacements': g:tcomment#replacements_xml                  \ } Endif

But remind me of the following error, I don't know how to add it, ask for your help.

An error occurred while processing function tcomment#Comment[171]..<SNR>111_ProcessLine[28]..tcomment#format#Printf1: Line 4: E767: too many arguments to printf() An error occurred while processing function tcomment#Comment: Line 171: E171: Missing :endif

chaiguolong avatar Jan 23 '19 07:01 chaiguolong

You have to escape the percent signs: "<%%-- %s --%%>"

tomtom avatar Feb 01 '19 11:02 tomtom