Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste with CTRL+V while in edit mode does not work #2706

Closed
givanse opened this issue Jun 2, 2018 · 5 comments
Closed

Paste with CTRL+V while in edit mode does not work #2706

givanse opened this issue Jun 2, 2018 · 5 comments
Labels

Comments

@givanse
Copy link

givanse commented Jun 2, 2018

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
@givanse
Copy link
Author

givanse commented Jun 2, 2018

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

@doovemax
Copy link

doovemax commented Jun 3, 2018

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

@scalpelx
Copy link

scalpelx commented Jun 6, 2018

You can set vim.useCtrlKeys to false, or set

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

@tyru
Copy link
Contributor

tyru commented Jun 6, 2018

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?

@hnra
Copy link

hnra commented Jun 17, 2018

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.

@jpoon jpoon added the kind/bug label Jul 15, 2018
marsevern pushed a commit to marsevern/Vim that referenced this issue Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants