Silvan Jegen wrote:

I also prefer // (mostly because to insert those I can just do a block
insert in vim/vis). The only downside of //-style comments that I can
see is that they are only allowed since C99[0].

Maybe I am missing something too though.

I use vi[0] and have this in my .exrc:
map q 0i/* ^[$a */^[hh

(Those are literal escapes)

You press "q", and the line is commented out.


[0]: https://github.com/n-t-roff/heirloom-ex-vi

--
caóc


Reply via email to