Closed heliomeiralins closed 7 years ago
This is the default sort method which prioritizes module length and depth before alphabetic sorting. I prefer sorting and grouping that favors my ability to discern shapes vs my ability to mentally alphabetize (which I'm terrible at doing quickly).
You can customize this to make alphabetic sorting the priority. Check the section Sort customization
under :h impsort-config
. I think you could set all of the sorting options to ['alpha', 'length']
to get it to sort like isort
.
Thanks.
So, I was testing impsort today for the first time and I opened a random django file with the imports:
After
:ImpSort
or:ImpSort!
we get:After
:!isort %
we get back to the original.