vim - Nerdcomment {% comment%} ... {% endcomment %} -


with nerdcommenter plugin, there easy way comment out lines in django template? know use {% comment%} ... {% endcomment %} comment lines, not 1 of shortcuts in nerdcommenter think.

thanks in advance!

nerd commenter uses 'commentstring' decide how make comment.

add following ~/.vim/after/ftplugin/htmldjango.vim:

set commentstring={%\ comment\ %}%s{%\ endcomment\ %} 

for more see:

:h nerdcominstallation :h 'commentstring' 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -