gcmt / wildfire.vim

Smart selection of the closest text object
MIT License
611 stars 19 forks source link

Doesn't work with vim-textobj-rubyblock #5

Closed tybenz closed 10 years ago

tybenz commented 10 years ago

I use vim-textobj-rubyblock (ruby block text obj with "r").

Wildfire works at selecting a single ruby block, but if it's selected one with var, hitting enter again does nothing. If I manually type var again, it works.

Here's the wildfire part of my .vimrc:

let g:wildfire_objects = {
    \ "*" : ["i'", 'i"', "i)", "i]", "i}"],
    \ "html,xml,mustache" : ["it", "at"],
    \ "ruby" : ["ir", "ar"],
\ }
gcmt commented 10 years ago

The reason of this behavior is explained here. Wildfire is pretty simple and most of its functionality relies on the ability of Vim to select text objects by using counts (e.g. v2i", v3i", etc). As of now, it seems that vim-textobj-rubyblock does not support counts, so what you're asking for cannot be achieved.

At first sight a solution seems to be reachable. I will look into this in the following days.

gcmt commented 10 years ago

Should be fixed now.

tybenz commented 10 years ago

Works like a charm! Thanks!