Tuesday, November 10, 2015

Re: override record

On 09/11/15 18:54, shawn wilson wrote:
>> 2) assign to it with the desired changes:
>>
>> :let @a=substitute(@a, 'foo', 'bar', 'g')

> Yeah, I've been pasting it and yanking it - just would be easier if i
> could :<up> (or q:) and edit. I haven't been able to find any plugins
> to do this, so apparently no one else thinks so though :(
>

The other way is:

: let @a = <c-r>a

and that puts the content on the edit line for you to edit it visually.

{An other} Tim



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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment