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

How to exit normal mode with Escape #102

Open
himat opened this issue Jan 24, 2023 · 3 comments
Open

How to exit normal mode with Escape #102

himat opened this issue Jan 24, 2023 · 3 comments

Comments

@himat
Copy link

himat commented Jan 24, 2023

I see that I can press jk to enter normal mode. But it seems like only pressing i can let me go into insert mode - normally that's fine in vim, but I feel like when using vimmode.spoon I actually want the opposite.

Or at least, I'd like to be able to press Escape to leave the vimmode.spoon normal mode and go back to the regular OS.
Is there a config I can use for that?

@himat
Copy link
Author

himat commented Jan 24, 2023

@dbalatero

@zengtianli
Copy link

Also want this feature or config

@zengtianli
Copy link

I see that I can press jk to enter normal mode. But it seems like only pressing i can let me go into insert mode - normally that's fine in vim, but I feel like when using vimmode.spoon I actually want the opposite.

Or at least, I'd like to be able to press Escape to leave the vimmode.spoon normal mode and go back to the regular OS. Is there a config I can use for that?

this is my config snippet in init.lua

-- Enter normal mode by typing a key sequence
-- vim:enterWithSequence('jk')
vim:bindHotKeys({ enter = { {}, 'escape' } })

works for me

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

2 participants