Created
July 28, 2014 08:46
-
-
Save RobertAudi/11ffa90f4952e5923ce7 to your computer and use it in GitHub Desktop.
System clipboard support in IdeaVim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap yy "+yy | |
vnoremap y "+y | |
nnoremap p "+p | |
vnoremap p "+p | |
nnoremap P "+P | |
vnoremap P "+P |
The nnoremap
/vnoremap
workaround does not seem to be required anymore. When I configure set clipboard+=unnamed
, neither x
nor d
copies the content to the clipboard.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was fiddling with these settings and noticed a difference between the way above, and the
set clipboard+=unnamed
way. The latter will make it so all yank operations yank to system clipboard, includingx
/X
. For me, that's undesirable, because I don't want single characters copied to the system keyboard one at a time (as withx
, without a selection). But doing the remaps forp
/y
/d
and related, were exactly what I was looking for.Both ways are valid, just depends on what you're after