Vim icon indicating copy to clipboard operation
Vim copied to clipboard

ctrl+v no longer pastes in insert mode

Open diminutivesloop opened this issue 8 years ago • 12 comments

Issue Type: Bug

In the past I've been able to paste text via ctrl+v when in insert mode. Recently however that shortcut has stopped working.

Extension version: 0.11.6 VS Code version: Code 1.23.0 (7c7da59c2333a1306c41e6e7b68d7f0caa7b3d45, 2018-05-03T16:44:55.614Z) OS version: Windows_NT x64 6.1.7601

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4930MX CPU @ 3.00GHz (8 x 3192)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled
Memory (System) 31.94GB (18.82GB free)
Process Argv C:\Program Files\Microsoft VS Code\Code.exe
Screen Reader yes
VM 0%

diminutivesloop avatar May 11 '18 12:05 diminutivesloop

该怎么办。。。

januwA avatar May 11 '18 12:05 januwA

ctrl + shift + v works for me.

siehc avatar May 11 '18 14:05 siehc

hi Copy: "*yy Paste: "*p

januwA avatar May 11 '18 15:05 januwA

vim.useCtrlKeys:false, now, you can use ctrl + c, ctrl + f, ctrl+d... etc.

ErgeAIA avatar May 11 '18 15:05 ErgeAIA

Ok but if there's no vim command that conflicts with ctrl+v then I shouldn't need to set vim.useCtrlKeys to false right? If so then this still looks like a bug since ctrl+v doesn't appear to be an implemented vim command in this extension.

diminutivesloop avatar May 11 '18 16:05 diminutivesloop

ctrl+v is for visual block mode

xconverge avatar May 11 '18 18:05 xconverge

I want to use paste and visual block at the same time. So I map:

        {
            "before": [
                "<C-l>"
            ],
            "after": [
                "<C-v>"
            ]
        }

But now C-v cannot paste. And I cannot disable handle C-v because I need visual block. What can I do?

@xconverge

I am a user of ideavim too. And it can distinguish the original key shot and vim key shot. That may help.

ChillingVan avatar May 11 '18 19:05 ChillingVan

And I also try

        {
            "before": [
                "<C-v>"
            ],
            "after": [
                ""
            ]
            "commands": [
            {
                "command": "editor.action.clipboardPasteAction",
                "args": []
            }
        ]
        }

But I don't know why it cause my vscode stuck at every input so I cannot use this setting.

ChillingVan avatar May 11 '18 19:05 ChillingVan

I enjoyed being able to use Ctrl-v from insert mode to paste.

It worked like this: if normal mode > C-v = Visual Block Mode if insert mode > C-v = Paste

Is this a side effect of #2581?

Echostrike36 avatar May 13 '18 13:05 Echostrike36

Possibly same as #2624. This should be fixed at master, or the next release.

tyru avatar May 13 '18 14:05 tyru

https://stackoverflow.com/q/50631313/1153319

cheako avatar Jun 04 '18 02:06 cheako

fixed in #2762

xconverge avatar Jul 12 '18 05:07 xconverge