tpope / vim-endwise

endwise.vim: Wisely add

Home Page:https://www.vim.org/scripts/script.php?script_id=2386

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for 'o'

dhruvasagar opened this issue · comments

Just a thought, it would be nice (though perhaps difficult, I can't say) to also add support for o and get similar behavior as we get with a <CR>. Since you don't have this support I will assume you've already considered and rejected the idea for some reason, just wanted to know your thoughts. You can close it giving an explanation if this doesn't appeal.

Seems pretty contrived to go to that much trouble. Why would you leave insert mode before pressing enter only to come back later?

good point, though I do do it sometimes, mostly if I decide to change the if condition for instance.

Oh you might try sidestepping the issue with the new :let g:endwise_abbreviations = 1.

What does that do ? And why do we not have a doc for this plugin ?

I'm sure you can figure it out. No docs just cuz this plugin dates back to before I was diligent about that sort of thing, plus there's not a lot to document. (This particular option is experimental and deliberately undocumented.)