I have a LaTeX source file with its indentation messed up.
I am looking for a way to force vim (may be through one of
vim-latex-suite commands) to re-run the automatic indentation commands over the whole file once again.
I can easily get rid of the messed up indentation by eating up all the white spaces in the beginning of each line with a simple regex
:%s/^\s\+//. My problem is how to re-run the automatic indentation commands over the whole file.
( I am basically looking for something like the
smart indent in MATLAB Editor or some other text editor, which can re-indent already existing text).