Autocomments in vim

I can’t find out how to turn on autocomments in the ruby indent file
(that is, when I hit enter on a comment line, it should insert an
automatic # in the beginning of the next line.) Help!

martin

I can’t find out how to turn on autocomments in the ruby indent file
(that is, when I hit enter on a comment line, it should insert an
automatic # in the beginning of the next line.) Help!

Read “:he ‘fo’” for a full list of things like this. In short though,
you will want to do “:set fo+=ro”.

-Michael

Thanks - that was really beginning to annoy me.

martin

···

Michael Brailsford brailsmt@yahoo.com wrote:

I can’t find out how to turn on autocomments in the ruby indent file
(that is, when I hit enter on a comment line, it should insert an
automatic # in the beginning of the next line.) Help!

Read “:he ‘fo’” for a full list of things like this. In short though,
you will want to do “:set fo+=ro”.