-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Do not guide indentions below length x #72
Comments
You mean this isn't just using this setting?
|
No, that setting would define that guiding starts at the third tab (sticking to your example). Think of the dashes as the highlighning: class ClassExample
- def example
- - return 0
- end
- def example2
- - puts ex
- - puts 0
- - puts test
- end
- def example3
- - puts some more
- - puts 1+1
- - puts some
- - puts some
- - puts some
- - puts some
- end
end This is how it looks like currently, but I suggested a setting, e.g. class ClassExample
- def example
- return 0
- end
- def example2
- puts ex
- puts 0
- puts test
- end
- def example3
- - puts some more
- - puts 1+1
- - puts some
- - puts some
- - puts some
- - puts some
- end
end Since the number of lines to be highlighted have to more or equal to 5 - example and example2 don't meet this requirement, example3 (since it is six lines long) does and thus get's guided. |
oh. That's more clear. and somewhat interesting. My first thought is to be against it because it's inconsistent. If you want to make the change, I cannot recommend much with my vimscript-fu at this time. The change you want (count lines, act after |
I'd love this feature, personally, but would have it set to a value of 2 for myself. more than 2 lines, I'd want hilighted. |
Sometimes I have code that is just a few lines long so it would be nice to have the option to set a minimal indention-length.
E.g.:
example and example2 are extremely short an guided indentions don't look nice - also they're distracting.
This may looks similar to Issue #39, but it isn't - though that would be nice too.
The text was updated successfully, but these errors were encountered: