Vim: Unresponsive VSC when pressing jj

Created on 14 May 2018  路  4Comments  路  Source: VSCodeVim/Vim

Issue Type: Bug

My esc key is mapped to jj and it works fine in many cases but i have a file where in the following things are written:

faajjkjldjflksafj;ljjfjskaljjjjjj:kdkdjjjjjjjjbbjjjldsfljjjjjjjjjjjjjjjjjjjjjjjjjjj

jjjjjjjjjj

when i press jj at the end of third line to go into escape mode, VSC becomes unresponsive. If i press jj somewhere else in the same file then it works fine.

Extension version: 0.11.6
VS Code version: Code 1.23.1 (d0182c3417d225529c6d5ad24b7572815d0de9ac, 2018-05-10T16:04:33.747Z)
OS version: Linux x64 4.4.0-21-generic


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (2 x 3276)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: disabled_off
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: unavailable_software
video_encode: enabled
vpx_decode: unavailable_software
webgl: enabled
webgl2: enabled|
|Load (avg)|2, 1, 1|
|Memory (System)|3.77GB (0.07GB free)|
|Process Argv|/usr/share/code/code --unity-launch|
|Screen Reader|no|
|VM|0%|


help wanted kinbug upstreavscode

Most helpful comment

Thank you for the perfect repro steps!

I was able to reproduce it instantly on Ubuntu, I pasted the text, pressed A on the last line, then jj to Esc

with:

    "vim.insertModeKeyBindings": [
        {
            "before": ["j","j"],
            "after": ["<Esc>"]
        }
    ],

All 4 comments

Thank you for the perfect repro steps!

I was able to reproduce it instantly on Ubuntu, I pasted the text, pressed A on the last line, then jj to Esc

with:

    "vim.insertModeKeyBindings": [
        {
            "before": ["j","j"],
            "after": ["<Esc>"]
        }
    ],

Whoa, this is an interesting one.

This is actually an upstream issue! I get this with the plugin disabled. I just pasted your exact code into a new file, went to the end of the 3rd line and pressed j j

Can you file this with vscode please since there is nothing we can do to fix it!

Ok thanks will do that.

Was this page helpful?
0 / 5 - 0 ratings