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

Showmode option #10

Closed LFDM closed 10 years ago

LFDM commented 10 years ago

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

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

LFDM commented 10 years ago

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.

kana commented 10 years ago

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.

LFDM commented 10 years ago

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 ;))

kana commented 10 years ago

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.

LFDM commented 10 years ago

No problem, thx for making the option available, no matter how.