Ingo Karkat wrote:

> In a plugin, I want to avoid that a :put =var command clobbers the expression
> register, so I save this via getreg('=', 1). I realized that I couldn't use
> setreg() to restore the expression register, but assignment via :let @= = var
> works just fine. Is this disallowed for setreg() because both the "append to
> register" functionality and the regtype argument don't make sense here?
> 
> I think it would be helpful to hint at the possibility of using :let @=;
> otherwise, people might assume that restoring the expression register value
> isn't possible at all.

Thanks, I'll include it.

-- 
Futility Factor: No experiment is ever a complete failure - it can always
serve as a negative example.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui