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

Multi-Cursor + insertModeKeyBinding jk -> <Esc> #2752

Closed
vivlim opened this issue Jun 19, 2018 · 3 comments
Closed

Multi-Cursor + insertModeKeyBinding jk -> <Esc> #2752

vivlim opened this issue Jun 19, 2018 · 3 comments

Comments

@vivlim
Copy link

vivlim commented Jun 19, 2018

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

What happened: When using multi-cursor & jk to exit insert mode, the first cursor is out of alignment with the others.

What did you expect to happen: All of the cursors should be in the same position & behave the same.

How to reproduce it (as minimally and precisely as possible):

  1. Create multiple cursors vertically
  2. Enter insert mode & type some text
  3. type "jk" to exit insert mode
    misaligned

User settings:

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

keybindings.json

    {
        "key":"ctrl+k",
        "command":"editor.action.insertCursorAbove",
        "when": "editorTextFocus"
    },
    {
        "key":"ctrl+j",
        "command":"editor.action.insertCursorBelow",
        "when": "editorTextFocus"
    }

Environment:

  • Extension Name: vim
  • Extension Version: 0.13.0
  • OS Version: Windows_NT x64 10.0.17134
  • VSCode version: 1.24.1
@shawjak3
Copy link

shawjak3 commented Jul 18, 2018

I'm also experiencing this issue on Linux using the latest vscode.

@vivlim thanks for the great keybinds for multi cursor, I struggled to come up with some that felt natural.

@nerdo
Copy link

nerdo commented Aug 27, 2018

Ditto. This is the only thing keeping me from using vscodevim. I heavily rely on multiple cursors and vim. For now I will stick with amVim.

@spacewaffle
Copy link

This issue is still happening if the cursors are on the same line and they are not on the end of the line
Mar-14-2019 12-39-50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants