On Thu, 5 Jan 2023, Igor Lerinc wrote:
> how to keep system clipboard in Vim register?
> I setted up to copy from system clipboard with this in .vimrc
> noremap <Leader>y "+y
> noremap <Leader>p "+p
> but that interferes with Vim inner registers.
> when i yank, or delete something in vim, (like, i copy something from
> website, so i can put it in file via Vim), i need to delete current line
> and insert what i have in system clipboard.
> but, when i delete something in vim, it stores that text in that same
> unnamed register. so, i need to go back to the app again, to copy what i
> want.
> (or, to first delete in Vim, and then copy from site, and paste in Vim
> (facepalm))
> How i can fix this?
> When Vim replaces that register (unnamed), it is not placed in numbered
> registers at all ! which make my work harder ! it would be simple, as "1 to
> get that register which was pushed. but here, it gets replaced completely.
I'm not sure that this is what you are looking for but if you paste what
coming from another app with "+p or "+[p (note the " is part of the keystroke)
your selection is not overridden by what you delete.
HTH
Walter
--
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/2984890-e8d4-1f44-bf13-5fa8cf83869d%40di.unimi.it.
Saturday, January 7, 2023
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment