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

Add ability to move to beginning/end of file if relative indent was not found #15

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

Conversation

telyn
Copy link

@telyn telyn commented Feb 6, 2020

I used this alteration to edit HAML files in a semi-automated way.

By default, the old behaviour is preserved - no move occurs if the indention level never decreases.
By setting g:indentwise_not_found_behaviour = 1, the cursor will continue to the end of the file.

I think I only added it to the relative-indent function, not to the specific-indent function. Let me know if you want it added to the specific indent one (though I don't see why that would be useful, I am happy to add it :) )

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.

1 participant