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

keybinding <c-f> overwrite vscode's default behavior #3050

Closed
myhere opened this issue Sep 14, 2018 · 7 comments
Closed

keybinding <c-f> overwrite vscode's default behavior #3050

myhere opened this issue Sep 14, 2018 · 7 comments
Labels

Comments

@myhere
Copy link
Contributor

myhere commented Sep 14, 2018

Describe the bug
This plugin's <C-f> binding overwrite vscode's default <C-f> behavior, but <C-b> is ok;

To Reproduce
Steps to reproduce the behavior:

  1. install Vim plugin
  2. restart vscode and open a file
  3. press <C-f> in「Insert」mode, it do nothing

Expected behavior

  • <C-f> in「Insert」mode is supposed to execute「cursorRight」command, it's the vscode's default key binding.
  • <C-b> works ok in all mode

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v0.16.4
  • VSCode version: 1.27.2
  • OS: MacOS 10.12.6

Additional context

@jpoon
Copy link
Member

jpoon commented Sep 14, 2018

What platform are you on? This sounds like expected behaviour so far... did you take a look at useCtrlKeys and handleKeys: https://github.com/VSCodeVim/Vim#vscodevim-settings

@myhere
Copy link
Contributor Author

myhere commented Sep 14, 2018

hi, @jpoon , i'm on MacOS(just added above)

vscode have a default <C-f> key binding on mac(see screenshot below),and the vim's <C-f> will overwrite the default binding.

but the <C-b> binding works correctly with both key bindings, because it have a vim.mode != 'Insert' condition check. see:

"when": "editorTextFocus && vim.active && vim.use<C-b> && vim.mode != 'Insert' && !inDebugRepl"

so i thinks it has nothing to do with useCtrlKeys and handleKeys~

image

@myhere
Copy link
Contributor Author

myhere commented Sep 21, 2018

hi @jpoon,

please see the comment above and do i fix it correctly?

@jpoon
Copy link
Member

jpoon commented Sep 21, 2018

Hey sorry. I just changed to a new job so haven't had time to look at this.

I don't have my mac with me right now but what is <C-f> do while in insert mode in vanilla vim?

@myhere
Copy link
Contributor Author

myhere commented Sep 21, 2018

I don't have my mac with me right now but what is <C-f> do while in insert mode in vanilla vim?

vanilla vim doesn't have a <c-f> mapping.

actually mac version VSCode map <c-f> to cursorRight(see above screenshot). so i want to keep it when using VSCodeVim plugin.

@jpoon
Copy link
Member

jpoon commented Sep 21, 2018

Ok, I just wanted to make sure we weren't overriding something there.

@jpoon jpoon added the kind/bug label Sep 21, 2018
@jpoon jpoon closed this as completed Sep 21, 2018
@jpoon
Copy link
Member

jpoon commented Sep 21, 2018

Closed with #3051

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

2 participants