Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: indentation text object #3

Closed
janko opened this issue Mar 16, 2015 · 2 comments
Closed

Feature request: indentation text object #3

janko opened this issue Mar 16, 2015 · 2 comments

Comments

@janko
Copy link

janko commented Mar 16, 2015

This is a really interesting plugin. I was wondering if it was possible to make a text object that would include "all lines with same or greater indentation". I would really like to be able to do something like ci%, and that the inner block of code is deleted.

I'm using Ruby and there is currently a plugin for Ruby block text objects, but it doesn't work properly (regexes should be improved). And I if your plugin would provide a text object for "blocks" (just based on indentation), that would work in all languages.

@jeetsukumaran
Copy link
Owner

The definitive indent-based text object is vim-indent-object. It works and it works well. I might incorporate it into this plugin later on, but right now I think the best option would be to install it side-by-side with this plugin.

@janko
Copy link
Author

janko commented Mar 16, 2015

That's awesome, I didn't know this plugin existed. Sorry for not googling before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants