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
Post a Comment