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 the submode within the rhs mapping?? #24

Open
hatelove85911 opened this issue Dec 20, 2015 · 1 comment
Open

How to exit the submode within the rhs mapping?? #24

hatelove85911 opened this issue Dec 20, 2015 · 1 comment

Comments

@hatelove85911
Copy link

Hi,

I really like this vim plugin, I think this will be the most favorite vim plugin on my list :)

one thing I can't figure out is that I want to exit the submode in the rhs mapping(without typing explicity), I think it should be possible, maybe I just don't know how to achieve that.

call submode#map('ctrl_window', 'n', '', 'v', ':vs<CR><Esc>')
call submode#map('ctrl_window', 'n', '', 's', ':sp<CR><Esc>')

In the above mapping, assume I'm already in the ctrl_window submode, when I type v, I hope that it will create a vertical split and exit to normal mode. that's why I put in the rhs. But it doesn't seem to be working like this, why???

@Swoorup
Copy link

Swoorup commented Sep 4, 2016

You need the 'x' in the options parameter

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