Vim: Paste with CTRL+V while in edit mode does not work

Created on 2 Jun 2018  路  5Comments  路  Source: VSCodeVim/Vim

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

What happened:

  1. Got to any app and press CTRL+C to put some text in your clipboard.
  2. Got to VSCode, press i to enter edit mode
  3. press CTRL+V, nothing happens

What did you expect to happen:
while in edit mode, CTRL+V pastes the content of the clipboard

If I disable VSCode Vim, CTRL+V works as usual.

  • Extension (VsCodeVim) version: 0.12.0
  • VSCode Version: 1.23.1 d0182c3417d225529c6d5ad24b7572815d0de9ac x64
  • OS Version: Windows 10 version 1803
kinbug

Most helpful comment

You can set vim.useCtrlKeys to false, or set

"vim.handleKeys": {
    "<C-c>": false,
    "<C-v>": false,
}

All 5 comments

SHIFT+CTRL+V works, however CTRL+V used to work too

i have the same problme,when i open vim. C+v not used to work, on mac,linux,windows

You can set vim.useCtrlKeys to false, or set

"vim.handleKeys": {
    "<C-c>": false,
    "<C-v>": false,
}

hmm, "fixing" this problem by changing to the previous behavior makes VSCodeVim uncompatible to original Vim behvaior.
Should we "fix" this?
Or the vim.handleKeys config which @scalpelx commented should be documented as FAQ?

Any reason why this can't work?

"vim.insertModeKeyBindings": [
    {
        "before": ["<C-v>"],
        "after": [],
        "commands": "editor.action.clipboardPasteAction",

    }
]

Would be nice to have <C-v> as paste in insert mode without giving up visual block because of useCtrlKeys or handleKeys.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cckowin picture cckowin  路  3Comments

edwintorok picture edwintorok  路  3Comments

triztian picture triztian  路  3Comments

AndersenJ picture AndersenJ  路  3Comments

typeoneerror picture typeoneerror  路  3Comments