Closed nashbridges closed 11 years ago
However, this case is probably language specific and should be addressed in a separate plugin (I've found https://github.com/rhysd/vim-textobj-ruby, haven't tested it though)
As you noticed, what you want to do is specific to Ruby language. While vim-textobj-indent provides generic text objects like ap
, ip
, and others. In this case, use other, language-specific, text objects instead.
Given code sample below:
when I run
vii
, I getwhile
vai
gives meI see current logic here, but with
vii
I'd rather havei. e. do not give up on an empty line if the following line is more indented than current one.