Is there any way to sort multiline imports with vim built-in functionality (alphabetically)?
E.g.
import Fred
import Foo, Baz,\
Bar, Spam, Eggs
import Python
Should become:
import Foo, Baz,\
Bar, Spam, Eggs
import Fred
import Python
I've checked :help sort. Especially the pattern matching comes close to what I want, but it leaves the imported classes separate under the sorted block.