DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

Transfer Texts between Vim and System Clipboard


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.



Published

May 30, 2017

Last Updated

May 30, 2017

Category

Tech

Tags

  • clipboard 2
  • linux 158
  • vi 1
  • vim 92
  • windows 67

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor