nelstrom / vim-textobj-rubyblock

A custom text object for selecting ruby blocks.
http://www.vim.org/scripts/script.php?script_id=3382
331 stars 21 forks source link

if...elsif...else blocks #2

Closed telemachus closed 13 years ago

telemachus commented 13 years ago

This is related to my other issue (on begin...rescue blocks), but distinct enough to separate, I think.

At the moment, the handling of complex if...elsif etc. blocks is counter-intuitive. Ideally they would work just as the module...class...do nested blocks in your readme. That is, you could select the entire if block or use ir to narrow in on just part of the larger block. However, because the plugin relies on indentation (I think) to figure out where it is, this doesn't seem possible. There may be nothing to do about it, and you may not want this behavior anyhow, but it might be worth mentioning in the readme (either as a limitation or as a design choice).

telemachus commented 13 years ago

Closing this. The plugin does not rely on indentation. I had another plugin that was confusing me. (See here for details if you're hideously bored.)