Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA with ideavim. Cannot copy text from another source

I tried to copy text from IDEA with ideavim plugin, using default vim keybindings (y). But this text isn't copied in global buffer and i can paste it only in IDEA.
How can I use copied piece of text in browser, for example?

like image 700
Supo Avatar asked Jan 12 '15 09:01

Supo


People also ask

How to disable IdeaVim?

Install the IdeaVim plugin After you restart the IntelliJ IDEA, Vim is enabled and the editor starts operating in the Vim mode. To disable it, deselect Tools | Vim in the main menu.

What is IdeaVim plugin?

Included In IdeaVim Bundle. Vim emulation plugin for IntelliJ Platform-based IDEs. IdeaVim supports many Vim features including normal/insert/visual modes, motion keys, deletion/changing, marks, registers, some Ex commands, Vim regexps, configuration via ~/. ideavimrc, macros, Vim plugins, etc.

How do I paste from clipboard in Vim?

When using Vim under Windows, the clipboard can be accessed with the following: In step 4, press Shift+Delete to cut or Ctrl+Insert to copy. In step 6, press Shift+Insert to paste.


1 Answers

Vim's yank command doesn't yank to the system clipboard by default; it yanks to the unnamed register. You can use the * or + register to access the system clipboard; also see this wiki article for more information. Or just set this option in your ~/.ideavimrc:

set clipboard+=unnamed

This ~/.ideavimrc setting has been supported in IdeaVim since VIM-476 was implemented in version 0.38. If the file does not exist create it in your user/home directory.

Note also that this is all standard Vim behavior; none of it is specific to IdeaVim except for the name of the config file.

like image 144
jbyler Avatar answered Sep 23 '22 02:09

jbyler