kana / vim-submode

Vim plugin: Create your own submodes
http://www.vim.org/scripts/script.php?script_id=2467
217 stars 24 forks source link

Option: do not leave submode when pressing key that is not mapped #27

Open louwers opened 7 years ago

louwers commented 7 years ago

Hi there. I'd like to see an option to not leave the submode when a key that is not mapped in that submode is pressed. The key should then be processed as normal.

Would it be hard to implement such a thing? Or is this already possible to do this?

I defined a submode for moving around lines with single key presses, but I'd like to keep using vim's native ability to move around the cursor while in this submode.

Iron-E commented 4 years ago

Seeing as there has not been any commit activity in this repository for three years I feel like it's fair to mention the plugin that I'm currently developing for Neovim, which is capable of doing what you describe.

Although the feature is currently in an integration branch for testing, nvim-libmodal can do this with its "layer" feature. Feel free to see if it suits your needs (although keep in mind it hasn't hit master yet).

louwers commented 4 years ago

@Iron-E Interesting! Thanks for sharing. I don't have much time to test it now, but I'll be keeping an eye on your project. :)