From b590dd10c97b668a9333fc531d7e0467e59f5b9f Mon Sep 17 00:00:00 2001 From: Morgan Date: Sun, 13 Oct 2019 13:24:09 +0200 Subject: [PATCH] How do I fix the indentation of an entire file in Vi? --- cheat/vim.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cheat/vim.md b/cheat/vim.md index 80ab4be..015b2be 100644 --- a/cheat/vim.md +++ b/cheat/vim.md @@ -15,3 +15,7 @@ And type: `:set key=` 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`