Thursday, January 5, 2023

Re: how to keep system clipboard in Vim register?

On Thu, 5 Jan 2023 13:22:09 +0100
Igor Lerinc <igor.lerinc7@gmail.com> wrote:
> I setted up to copy from system clipboard with this in .vimrc
>
> noremap <Leader>y "+y
> noremap <Leader>p "+p

I can't help with your main question (I don't think what you're asking
is possible without creating custom functions), but I wanted to suggest
an alternative way to use system clipboard than mapping. See ":h 'cb'".

:set clipboard+=unnamed,unnamedplus


--
Enan
3nan.ajmain@gmail.com
https://git.sr.ht/~enan/
https://www.github.com/3N4N

--
--
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/20230106120408.5fbbcc6d%40cirdan.

No comments: