Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Implement greater functionality in the CTRL-W keys

Open plbowers opened this issue 8 years ago • 3 comments

Improved window splitting is now available. Vim emulation should be correspondingly improved.

ctrl-w j ctrl-w k ctrl-w + ctrl-w - ctrl-w < ctrl-w > ctrl-w c

plbowers avatar Nov 14 '18 15:11 plbowers

Dupe of https://github.com/VSCodeVim/Vim/issues/2696? In going through that list, most of the keybindings are already supported.

In an effort to keep the issue count sane, I'm closing this issue, but feel free to re-open if there is something we are missing.

jpoon avatar Dec 30 '18 08:12 jpoon

Came here looking for Ctrl-W s (horizontal split)? That is not working. Didn't bother to create a new issue since it was already reported before.

Swoorup avatar Jan 01 '19 18:01 Swoorup

In macOS : <C-w>v works as in neovim (keep Ctrl pressed, press w, press v), open a new vertical tab. <C-w>s does not work, you have to press <C-w>, release keys and then press s.

Probably because <C-w>v is interpreted as <C-w><C-v> by vscode. Both bindings exist in vscodevim (in package.json). <C-s> binding does not exists in vscodevim, and is ignored.

Adding :

{
        "key": "ctrl+s",
        "command": "extension.vim_ctrl+s",
        "when": "editorTextFocus && vim.active && vim.use<C-s> && !inDebugRepl"
}

in "contributes" > "keybindings" section of package.json "fix" the issue.

Committed modifications on a fork, should I do a PR (npm test passed) ? https://github.com/sdiprizio/Vim/commit/1791f2f962caa4dd4d05d1b6953f35032d15ed40

sdiprizio avatar Aug 01 '19 10:08 sdiprizio