How do I fix the indentation of an entire file in Vi?

This commit is contained in:
Morgan 2019-10-13 13:24:09 +02:00 committed by GitHub
parent e67d8447c7
commit b590dd10c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,3 +15,7 @@ And type:
`:set key=` `:set key=`
Finally type `:wq` to save and close the file. Finally type `:wq` to save and close the file.
### Indent the whole file in VIM ([src](https://stackoverflow.com/questions/506075/how-do-i-fix-the-indentation-of-an-entire-file-in-vi))
`gg=G`