DEV Community

Discussion on: From Vim to the system clipboard in one command

Collapse
 
2kabhishek profile image
Abhishek Keshri

I use this in my vimrc

" Copy Paste from X11 Clipboard
vmap yy :!xclip -f -sel clip
map pp mz:-1r !xclip -o -sel clip`z

P.S : Leader is mapped to ","

Here's the full .vimrc

Collapse
 
aminnairi profile image
Amin

Haha! You mapped pp. Got it? ... Okay bye. #jk

Thank you so much for sharing your .vimrc. It's like sharing our grandma recipes... I love it!

Collapse
 
2kabhishek profile image
Abhishek Keshri

I see what you did there 🀣