You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the documentation states that the option is overwriting regs * and +.
-- sync clipboard overwrites vim.g.clipboard to handle * and +
-- registers. If you sync your system clipboard without tmux, disable
-- this option!
sync_clipboard = true,
The " reg is a little bit special, because it gets overwritten with everything (even using setreg). Thus, syncing from tmux is overwriting " every time. We can only handle this case, if we read the " beforehand and set it back after the sync has taken place. The question is if it is applicable cause doing so would prevent dd in one nvim and p" in the second.
Kind regards
Alexander
PS: I leave the report open. You can close it or we use it to track a pr (if you need that option configurable).
When
sync_clipboard
is disabled, there is no way to set the unnamed registerExample:
lua vim.fn.setreg('"', 'some text to copy')
Then trying to paste:
p
will return whatever is in the tmux buffer instead of register"
The text was updated successfully, but these errors were encountered: