How do I fix the indentation of an entire file in Vi?
This commit is contained in:
parent
e67d8447c7
commit
b590dd10c9
@ -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`
|
||||||
|
Loading…
Reference in New Issue
Block a user