Tuesday, November 10, 2015

Re: override record

On Tue, Nov 10, 2015 at 10:19 AM, Tim Chase <vim@tim.thechases.com> wrote:
> On 2015-11-10 07:38, shawn wilson wrote:
>> How about this - is there an event that I can use to just redefine
>> what vim already made with the same information?
>
> I'm not sure what you mean by "an event".

An autocommand trigger

>
> You can also execute the expression register as a macro if you need:
>
> :let first=@a[:15]
> :let remainder=@a[16:]
> @=first . "my replacement here" . remainder
>

That's kinda cool - I'll have to remember that.

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