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

<ctrl+f><ctrl+d><ctrl+a> has no effect on "Insert" mode #1960

Closed
yuhui-lin opened this issue Aug 10, 2017 · 5 comments
Closed

<ctrl+f><ctrl+d><ctrl+a> has no effect on "Insert" mode #1960

yuhui-lin opened this issue Aug 10, 2017 · 5 comments

Comments

@yuhui-lin
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.


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

Environment:
latest MACOS + latest VSCode + VSCodeVim

  • VSCode Version: 1.14.2 (1.14.2)
  • VsCodeVim Version: latest 0.9
  • OS: macos

What happened:
In "Insert" mode, should be mapped to "CursorRight" which forward cursor one character.
should move cursor to the beginning of the line.
But they have no effect.

I notice that <ctrl+b> does take effect because there is one more condition in "when" than <ctrl+f>.
{ "key": "ctrl+f", "command": "extension.vim_ctrl+f",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl" },
{ "key": "ctrl+b", "command": "extension.vim_ctrl+b",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl && vim.mode != 'Insert'" },

I think "vim.mode != 'Insert'" should be applied to every "Normal" mode commands, like ^a, ^f, ^e, ^d ...

What did you expect to happen:

How to reproduce it:

@wYuanHpp
Copy link

+1
I really want use ^a, ^f, ^e, ^b to control my cursor , because I use Mac . So I want to know how to remap these keys.

@wYuanHpp
Copy link

this problem is resolve;you can config keybinding.json

@reducm
Copy link

reducm commented Apr 3, 2018

@wYuanHpp can you give an example how to bind ctrl+f to move forward a char in insertmode?

@snowshoes
Copy link

@reducm here is an example shows how to move cursor in insert mode

{
    // Ctrl-h : Move backward
    "key": "ctrl+h",
    "command": "extension.vim_left",
    "when": "editorTextFocus && vim.active && vim.mode == 'Insert' && !inDebugRepl"
  },
  {
    // Ctrl-l : Move foward
    "key": "ctrl+l",
    "command": "extension.vim_right",
    "when": "editorTextFocus && vim.active && vim.mode == 'Insert' && !inDebugRepl"
  },
  {
    // Ctrl-l : Move upward
    "key": "ctrl+k",
    "command": "extension.vim_up",
    "when": "editorTextFocus && vim.active && vim.mode == 'Insert' && !inDebugRepl"
  },
  {
    // Ctrl-l : Move downward
    "key": "ctrl+j",
    "command": "extension.vim_down",
    "when": "editorTextFocus && vim.active && vim.mode == 'Insert' && !inDebugRepl"
  }

@jpoon
Copy link
Member

jpoon commented Jan 31, 2019

I believe this is a dupe of #3126. The fix will be included in our next release 1.0.4

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