On May 24, 6:14 am, Bram Moolenaar <[email protected]> wrote: > Philippe Vaucher wrote: > > > Don't you need to let the commands know what register text was yanked > > > into? > > > No because every delete/yank use the " register even if a register was > > explicitely specified. As a matter of completeness maybe it'd be nice > > to know which register was intended yes but it's the first time I > > fiddle with vim's source (with some pain) so I'm not too sure how much > > work is involved in creating one of those v:somevar. > > OK, we can add it later when really needed. >
Do we get it for free? :help v:register says it contains "the name of the register in effect for the current normal mode command". It certainly seems like it *could* contain the register used, though I'm not sure whether the contents are lost before the autocmd fires. -- You received this message from the "vim_dev" 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
