vim
for Linux
Add set clipboard=unnamedplus
into $HOME/.vimrc
.
for cygwin
Add set clipboard+=unnamed
into $HOME/.vimrc
.
Notice the plus sign before the equal sign.
On Winodws 10, set clipboard+=unnamedplus
doesn't work.
ideavim
The ideavim plugin for IntelliJ IDEA, PyCharm and WebStrom. Create a file named '.ideavimrc' with the following texts:
set nocompatible
set clipboard=unnamedplus
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
For Linux, put this file in $HOME
folder.
For Windows, put it in %USERPROFILE%
folder.