Tuesday, October 26, 2010

Re: Copying and replacing chars of a line through a regex

2010/10/26 Fernando Basso <fernandobasso.br@gmail.com>:
>
> However, I don't understand where in that regex line it is implied to
> paste line 9 to line 10.
> Moreover, what if I wanted to make it paste above (in line 8)?

If I understood well your question, I think the answer is in :help :t...


I don't exactly know what are you trying to do. But I use the
following mapping to underline text comments:

" Title underline with user-given character:
:map <c-t> yyp:s/[:\s<space>]*$//<enter>0/[^\/\*\- \"]<enter>v$?\w<enter>r

Maybe could help you in your purpose...


--
Joan Miquel Torres__________________________________
Linux Registered User #164872
http://www.mallorcaweb.net/joanmiquel
BULMA: http://bulma.net http://breu.bulma.net/?l2301

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