Thursday, December 2, 2010

Example code to wrap predefined text around selected text

Can anyone show an example of how to do this:

I want to wrap this:

# [HP 101202_15:55:07
<selected text region here>
<selected text region here>
<selected text region here>
<selected text region here>
# ]

Around the selected text... that is, select some text and press a key
combo ... voila... its no surrounded by:
# [HP 101202_15:55:07

# ]

Over the yrs I've acquired a fairly lengthy .vimrc but coding
something like that is clear out of my skil set.

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