[tpm] reflowing comments in vim

Olaf Alders olaf at vilerichard.com
Thu Dec 8 11:08:25 PST 2011


On 2011-12-08, at 1:25 PM, Fernando Oliveira wrote:

> :map ccc J:s/ #//g<CR>I# <ESC>
> 
> then, <shift>+v select all comments, than press ccc

This came the closest of all, but it wasn't quite perfect.  It turns out that selecting the lines and and then "gq" solves it.  I had stupidly had ":set paste" in my .vimrc which was messing with the formatting.

Thanks to everyone for your help!

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