Monday, June 4, 2012

Re: Repeat gq from : command line?

Actually, a brute force solution is to is something like this:

:g/^[[:lower:][:punct:]]/,/\u/!fmt

That does just what I want, running fmt for block after block. But on the long
files I am working with this takes forever to complete. I guess each block (in
windows) gets sent to a temp file run through fmt and put back in vim.

I believed that using the gq internal command would be much faster, since the
whole text is already in a buffer. I just cant get it to work.


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: