I have a couple of interrelated questions about how the 'set comments' option
works. First of all, I'm sort of trying my hand at writing an indent file for
the text-adventure programming language Inform, which uses ! to mark comments.
I'm assuming the indent file is an inappropriate place to put it (mainly just
because grepping in the $VIMRUNTIME/indent directory only returns one result out
of all the however many different indent files. Would any other location be more
Second, even if I set a line like:
in my .vimrc (to add " and ! as comment markers), I find :set comments
whenever I load a file with a filename/extension known to vim. So, for example,
if I'm editing a file named "foo", I'll get the comments string from my vimrc,
but if I'm editing inform.vim, or foo.c, or even .article I'll get the truncated
one. What could be causing this to happen? I'm absolutely stumped.
"Heaven is a place where nothing ever happens." -David Byrne, Talking Heads
"The internet is a place where absolutely nothing happens."
-Strong Bad, homestarrunner.com