Monday, June 14, 2010

How to center text in a comment box

Hello,
if I select a text area via visual mode, how to draw a 80 chars width
comment box and center the selected text in it?

For example:
If I select the following text:

GODMORING
GUYS

I obtain

/
*******************************************************************************
*
GOODMORING *
*
GUYS *

******************************************************************************/

Thank you

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