Adam Monsen wrote:
On 04/20/2011 06:02 PM, Tim Chase wrote:
While I don't know what other folks use, and I don't do it myself,
this one-liner can be made into a :command! or mapped to make it
pretty easy/straight-forward:

:%s/^\(.*\)\>\s*\(\*[^*]*\*\)$/\=printf('%s%*s', submatch(1), 
(&tw?&tw:80)-(strlen(submatch(1))), submatch(2))
That is awesome. Thanks, Tim!

Looking through some more of the help, I'm actually thinking much of
it was formatted by hand.

Bram prefers smaller -- and tabs cover more space than spaces. So I usually insert tabs in my help files to push the linkpoints to the right (but not enough to push past the 80-column line). Spaces are "prettier" though (because you can get the right sides of the linkpoints all at the 80-column point). Of course, now with conceal mode available, the right-hand-side is a bit more murky anyway (not all vims have +conceal, what is the conceallevel, etc).

Regards,
Chip Campbell

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

Reply via email to