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

INSERT MODE ctrl+d don't add Selection To Next Find Match #1535

Closed
zhouxq555 opened this issue Apr 20, 2017 · 7 comments
Closed

INSERT MODE ctrl+d don't add Selection To Next Find Match #1535

zhouxq555 opened this issue Apr 20, 2017 · 7 comments
Labels

Comments

@zhouxq555
Copy link

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


What did you do?

In INSERT MODE click ctrl+d don't add Selection To Next Find Match
just like VScode default setting

What did you expect to happen?

What happened instead?

Technical details:

  • VSCode Version: 1.11.2
  • VsCodeVim Version: [please ensure you are on the latest] latest
  • OS: win10 64
@zhouxq555
Copy link
Author

//vim config
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": false,
"vim.hlsearch": true,
"vim.startInInsertMode": true,
"vim.insertModeKeyBindings": [
    {
        "before": [
            "j",
            "j"
        ],
        "after": [
            "<Esc>"
        ]
    }
],
"vim.otherModesKeyBindingsNonRecursive": [
    {
        "before": [
            "<leader>",
            "d"
        ],
        "after": [
            "d",
            "d"
        ]
    },
    {
        "before": [
            "<C-n>"
        ],
        "after": [],
        "commands": [
            {
                "command": ":nohl"
            }
        ]
    }
],
"vim.leader": "<space>",
"vim.handleKeys": {
    "<C-a>": false,
    "<C-f>": false,
    "<C-d>": false
}

@RodrigoRoaRodriguez
Copy link

I think this is a duplicate of #1311. However what I find strange is that you have "vim.handleKeys": {"<C-d>": false} which is a workaround for this issue but results in #1467 nonetheless, hence not really solving the problem of multi-cursor functionality in insert mode.

@Chillee
Copy link
Member

Chillee commented Apr 29, 2017

The problem with implementing this is that in order to do a ctrl+d, vscode needs to select the word first.

However, for us, selecting a range necessarily puts us into visual mode (I think). It's fairly trivial to enable D-d in insert mode, but that would drop you into visual mode.

I'll try to find a solution, but it might be difficult.

Chillee added a commit to Chillee/Vim that referenced this issue May 3, 2017
rebornix pushed a commit to Chillee/Vim that referenced this issue May 5, 2017
@johnfn johnfn closed this as completed in b05ba91 May 9, 2017
@binarious
Copy link

This still doesn't work for me.

Without vim (as expected):
withoutvim

With vim (only adds selection to the whole word):
withvim

@Chillee
Copy link
Member

Chillee commented May 16, 2017

@binarious That's a bit different of an issue. Could you open up another issue for that?

@binarious
Copy link

Ok, done: #1705

@dytra
Copy link

dytra commented Jan 22, 2020

I think this is a duplicate of #1311. However what I find strange is that you have "vim.handleKeys": {"<C-d>": false} which is a workaround for this issue but results in #1467 nonetheless, hence not really solving the problem of multi-cursor functionality in insert mode.

this solution works if you have vim installed

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