Skip to content
A custom text object for selecting ruby blocks. http://www.vim.org/scripts/script.php?script_id=3382
VimL Visual Basic Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
plugin/textobj
test
.gitignore
README.md
readme.vim.org
todo.otl

README.md

A custom text object for selecting ruby blocks.

Depends on Kana's textobj-user plugin.

Test suite requires vspec (also by Kana).

Running the specs

To run the specs, you call vspec as follows:

vspec {input-script} [{non-standard-runtimepath} ...]

In this case, the non-standard runtimepath must include the vspec plugin, the textobj-user plugin (which is a dependency for this plugin) and this plugin.

Assuming you use pathogen to manage your plugins, then the plugins required to run the test suite will be found in the following locations:

~/dotfiles
          /vim
              /textobj-user
              /textobj-rubyblock
              /vspec

So to run the basic.input tests, you would run:

cd ~/dotfiles/vim/textobj-rubyblock
../vspec/bin/vspec test/basic.input ../vspec/ ../textobj-user/ .
Something went wrong with that request. Please try again.