Hi,
Sometimes, there is a need for a mapping to yank something without a trace so
it has to save and restore the relevant registers.
The problem is that there is no way to set register " without modifying
register 0. So if, for example, I yanked something and then deleted something
else and now want to do a yank as part of a mapping, this mapping will have to
restore register " with the deleted text. But now the original content of
register 0 (the yanked text) is lost.
Maybe we need to add an option to setreg() to avoid setting register 0 along
with register ".
Another issue: register 1 contains the last deleted text also when specifying
another register ("xdd). This is not according to the help and yank behavior:
"Numbered register 0 contains the text from the most recent yank command,
unless the command specified another register with ["x].
Numbered register 1 contains the text deleted by the most recent delete or
change command, unless the command specified another register"
Thanks,
Ramel
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.