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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -