VIM copy to Windows clipboard will not paste into "rich" contexts.

Using the IdeaVim plugin with no extra configuration.  I select text (say, using the command vw to select a word) and copy it to the system clipboard with the command "+y

I can paste that into some Windows applications, such as notepad and notepad++ but it will not paste into other applications such as Outlook or this browser RichText box.  Generally, nothing happens, although in some applications I get an incorrect paste, such as a paste of the background of the text.  For example if I paste into this richtext box, I get a result that looks like the background of the selected text. ( a black rectangle).

I inspected the clipboard content by using the .Net API for it.  The content created by Pycharm/IdeaVim reports that it holds the data in the following available formats:

HTML Format
Rich Text Format
Text
UnicodeText
System.String
UniformResourceLocator
JAVA_DATAFLAVOR:application/x-java-jvm-local-objectref; class=com.intellij.openapi.editor.RawText
JAVA_DATAFLAVOR:application/x-java-jvm-local-objectref; class=com.intellij.codeInsight.editorActions.FoldingData
Locale
OEMText

My assumption is that the content for one or more of the rich formats is malformed.  A client application attempts to use the content in, say, Rich Text or HTML format, and it fails. My own inspection tends to confirm this.  I inspect the "html" format content, and it's like this:

<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"></head>
<body>
<pre style="background-color:#2b2b2b;color:#a9b7c6;font-size:9.8pt;"></pre>
</body>
</html>

(line breaks added)

Clearly, there is html formatting but no content. My clipboarded content should appear in the body tag. 

Using WIndows 10 1809.

Using Pycharm 2019.2.3 (Community Edition)

 

 

 

Please sign in to leave a comment.