Wednesday, October 19, 2011

Re: Trigger for yank

On Oct 20, 12:05 am, sinbad <sinbad.sin...@gmail.com> wrote:
> hi,
>
> is it possible when a text is yanked, perhaps an autocommand kind of
> mechanism.
> i want to be able to set a variable or call a function when a text is
> yannked. i know
> there are many ways in which text can be yanked, but i want a solution
> for the specific
> case of yank commands like "yy" "yw" ... Is it possible ?

Sure, map the y command.

Or tell us what you're actually trying to accomplish. Possibly it has
already been done for you. The YankRing plugin comes to mind, but you
haven't said what the actual problem you're trying to solve is.

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