VSCodeVim / VSCodeVim/Vim

Markdown File Paste does not work with Vim extension

Open
#9,048 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

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
  },

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a Markdown file using Ctrl+V and Ctrl+Shift+V with Markdown > Editor > File Paste enabled, then compare the Vim extension's key handling with the vim.handleKeys configuration. Done means image pasting works in Markdown and adds the image to the workspace without breaking Vim behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.