[tpm] reflowing comments in vim
Olaf Alders
olaf at vilerichard.com
Thu Dec 8 09:08:54 PST 2011
Hi Folks,
I'm a bit clueless when it comes to vim. Given comments in code which look like this:
# blah
# blah blah blah blah
# blah
I'd like to be able to reflow them to look like this:
# blah blah blah blah blah blah
I'd like to preserve indentation and respect the line wrap at X chars to that anything which spills over to the next line is correctly commented and indented. I had looked at this stack overflow question, but it's not working for me. However, that may just be because I'm "doing it wrong".
http://stackoverflow.com/questions/7338214/nicely-formatting-long-comments-in-vim
Can anyone point me in the right direction?
Olaf
--
Olaf Alders
olaf at vilerichard.com
http://vilerichard.com -- folk rock
http://twitter.com/vilerichard
http://cdbaby.com/cd/vilerichard
More information about the toronto-pm
mailing list