Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Markdown File Paste does not work with Vim extension

Open KrappRamiro opened this issue 1 year ago • 3 comments

Describe the bug In concise words, if you try to copy and paste (with Ctrl+V or Ctrl+Shift+V) an image into a markdown file, the Markdown > Editor > File Paste feature wont work

To Reproduce

  1. Enable Markdown image pasting as described in https://stackoverflow.com/questions/75831497/how-can-i-paste-images-into-my-markdown-files-in-vs-code
  2. Copy an image into your clipboard
  3. Try to paste the image into Markdown either with Ctrl+V or Ctrl+Shift+V, it wont work.

Expected behavior I expect the image to be pasted into markdown and added into my workspace :)

Environment:

Vscode version: 1.89.0 Vim plugin version v1.27.3 OS: Kde Neon (Linux x64 6.5.0-28-generic)

Additional context

This is my vim.handlekeys

  "vim.handleKeys": {
    "<C-d>": false,
    "<C-c>": false,
    "<C-s>": false,
    "<C-z>": false,
    "<C-y>": false,
    "<C-j>": false,
    "<C-b>": false,
    "<C-p>": false,
    "<C-k>": false,
    "<C-f>": false
  },

KrappRamiro avatar May 31 '24 22:05 KrappRamiro

I can confirm this issue. I'll also note that even if you set the vim.useSystemClipboard option to true you still cannot paste images in markdown. Manually selecting "Paste" from the command palette (editor.action.clipboardPasteAction) as well as using the Shift-Insert keybinding are my current workarounds.

IllustratedMan-code avatar Aug 22 '24 17:08 IllustratedMan-code

I'm running into this issue as well.........

bitorangej avatar Jan 14 '25 08:01 bitorangej

Running into this issue as well.

alexsohn1126 avatar Apr 04 '25 18:04 alexsohn1126