Skip to content

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

@hatelove85911

Description

@hatelove85911

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???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions