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

ysiw just goes into insert and types a 'w' #381

Open
Christensen-John opened this issue Oct 20, 2023 · 1 comment
Open

ysiw just goes into insert and types a 'w' #381

Christensen-John opened this issue Oct 20, 2023 · 1 comment

Comments

@Christensen-John
Copy link

I've been trying to get this to work. The more basic vim.surround commands work. When I type ys and then follow it with i the i is interpreted as going into insert mode.

@Christensen-John
Copy link
Author

Christensen-John commented Oct 20, 2023

Edit, it turns out that it works after I remapped j and k to swap around. Why would remapping those keys affect this command which doesn't use a remapped key?

Here is the remapping I used:
noremap k j

noremap <C-w>k <C-w>j

noremap <C-w><C-k> <C-w>j

noremap j k

noremap <C-w>j <C-w>k

noremap <C-w><C-j> <C-w>k

Source: https://superuser.com/a/1742512

I split that onto different lines or else VSCode would not work with the remappings.

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

No branches or pull requests

1 participant