I would like to use
latexindent from the
Ideally, I would use it just like one uses
Recall that in
vi you can filter any portion of your text through an external filter. So, one could type
!}fmt and upon hitting return, the current paragraph is formatted as if it was text. Similarly, you can type
!}sort -u to sort a list, removing any duplicates, etc.
Ideally, one could write
!}latexindet -someflags to LaTeX format the current paragraph.
Benefits of this workflow are being able to quickly undo the changes by simply hitting
u, and the ability to apply indentation at a finer grain.
I will wait a little, before posting my answer to this problem.