Artificial intelligent assistant

Vim gg=G (reindent whole file) without losing current position Recently my main work was editing .xml files. Google told me that for re-indenting a file I need to press `gg=G` in normal. But moving to `gg` is something that I don't want. Is there any way to do the same without losing the current position?

Use the ` mark:


gg=G``


Or use `Ctrl-O`


gg=G


Or `g;`


gg=Gg;

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy f56ff1686e1ba4b92697fb27c27da303