Closed LFDM closed 10 years ago
Do you really want 'showmode'
? What you really want is to show the current submode in vim-airline/vim-powerline, isn't it?
That probably would be better, but probably not possible without going into the airline/powerline code (has been a while since I looked at airlines code, don't remember how it solves this). I am not sure it would be worth it - it's totally acceptable for me to have the submode temporarily shown in the last line, just below airline/powerline.
That probably would be better, but probably not possible without going into the airline/powerline code
Why? vim-airline has several API for configuration. The missing API to get the current submode.
Well, I still would have to look up how that works - then I would have to adjust my theme to show the submode in a meaningful way etc. And I am not sure that I would like that better afterwards - having the submode shown in the last line looks good to me (it's a submode after all, so it makes sense to show it below airline's current real mode ;))
Anyway, I prefer gh-7. Because your patch doesn't add the option properly, leaves dead code, and behave unexpectedly if 'showmode'
is changed after loading vim-submode.
No problem, thx for making the option available, no matter how.
This is the same feature as #7. vim-airline or powerline users almost always have their showmode info to false, as the mode is shown inside the statusline anyway. Of course, they don't have support to show submodes, so it makes sense to have an option to show the submode by force.
I have it implemented a little differently than @vheon - more in line with the general style of your plugin.
Closes #7