Thursday, May 26, 2011

Re: formatprg and gq or gw

* Kevin Walsh [2011.05.26 17:40]:
[...]
> 2. Is there any way to send the external command the vim textwidth
> variable?

You need to arrange for this:

exe 'set fp=par\ -w' . &tw

to be executed whenever 'textwidth' changes. Perhaps in a filetype
plugin, a mapping or an autocommand.

HTH,

--
JR

--
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: