-
Notifications
You must be signed in to change notification settings - Fork 15
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
Have relative indent movement include end line #12
Comments
I'd be interested in this too. Anyone have an interim solution? |
I have this problem as well. This in vim is the difference between inclusive and exclusive motions, and I've searched through the source code for those words. It seems it should be fixable, what we all want is that in operator mode (after edit: basically it's just changing the ones in the |
Oh great, good job! I wonder, is there a way to do it without editing the code of the plugin itself? Something that we could stick in our |
Thanks for helping out with this. For an end-user fix, I think just suppressing keymaps and redefining them in your vimrc should work. Or just redefining /overriding them. For a more permanent fix, it gets to be more complicated. I am hesitant to make the change without exploring what the impact would be on other languages, e.g. Python, which may or may not want the last line grabbed. If there is a language difference, then filetype-specific logic needs to be added. |
Here's the solution I've come up with for my
|
For anybody who might have this issue in the future, I have created a fork that just has the 0 zeroes for In any case, this option will let you in C-like languages like javascript, rust, etc. do a simple I'm down to look around how to make language specific behaviour happen, but not sure where to start. |
It's possible this already exists, but I couldn't find it in the docs.
I find a lot of the time I want to do something like this:
And I start on the first line and if I do "y]="
It will only give me:
But it'd be useful to have the option to include that last line too.
Also super useful for xml, or anything with nesting.
Except python.
Does this exist?
The text was updated successfully, but these errors were encountered: