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 |
$ cat ~/.ideavimrc
set clipboard+=unnamed
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, including x
/X
. For me, that's undesirable, because I don't want single characters copied to the system keyboard one at a time (as with x
, without a selection). But doing the remaps for p
/y
/d
and related, were exactly what I was looking for.
Both ways are valid, just depends on what you're after
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I add these two lines:
nnoremap dd "+dd
vnoremap d "+d