Vim-R-plugin icon indicating copy to clipboard operation
Vim-R-plugin copied to clipboard

Issue with clipboard

Open galadude opened this issue 9 years ago • 2 comments

I'm using the clipboard, to get data that I've copied from Excel. However, when I run the following line with Vim-R-Plugin, it saves the line of code instead of what's in my clipboard.

x <- read.table(file = "clipboard", sep = "\t")

galadude avatar Mar 09 '16 13:03 galadude

On Windows, the plugin uses the clipboard to "send" the command to R. What it really does is:

  1. Copy the contents of the clipboard into a temporary variable.
  2. Copy the command to the clipboard.
  3. Raise R window and send CTRL-V to it.
  4. Raise GVim window.
  5. Restore the clipboard contents.

jalvesaq avatar Mar 09 '16 15:03 jalvesaq

I have found a way of sending commands to Rgui on Windows without using the clipboard, and the bug is fixed in the Nvim-R plugin.

jalvesaq avatar Mar 16 '16 14:03 jalvesaq