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

Provide one text object instead of of two #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

szw
Copy link

@szw szw commented Jul 11, 2013

Provide only one text object behaving differently depending on the
current filetype. It doesn't include the line below the indent text for
file types where indentantion is a part of the syntax. Currently it
means Python, CoffeeScript, and Haml buffers. This can be extended as
necessary.

If accepted the doc/indent-object.txt should be changed accordingly.

Provide only one text object behaving differently depending on the
current filetype. It doesn't include the line below the indent text for
file types where indentantion is a part of the syntax. Currently it
means Python, CoffeeScript, and Haml buffers. This can be extended as
necessary.

If accepted the doc/indent-object.txt should be changed accordingly.
@michaeljsmith
Copy link
Owner

Thank you for your commit.

I'm not sure what the best way to go about this is. At the moment it's quite easy to make a mapping for the preferred mode for the current file. I'm not necessarily sure that hard-coding a list of file types is the best approach here?

If we wanted to go down this route, I think it would make sense to implement the switching as file-type-specific plugins, maybe?

@szw
Copy link
Author

szw commented Aug 8, 2013

I like the way they did it in vim-pasta plugin: https://github.com/sickill/vim-pasta/blob/master/plugin/pasta.vim#L60

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

Successfully merging this pull request may close these issues.

2 participants