Reformat or fix the indentation of an entire file in vim
This short guide will help you reformat or fix the indentation of an entire file in Vim -- all at once!
Posted in these interests:
This short guide will help you reformat or fix the indentation of an entire file in Vim -- all at once!
I wrote a separate guide that will show you how to set indentation rules in Vim.
gg=G
"=" is the indent command and it can takes motions. So "gg" means start at the beginning of the file and "G" means finish at the end.
Nothing says good morning quite like a breakfast sandwich. From the doughiness of the muffin to the eggs' fluffiness to the cheese's gooeyness, breakfast sandwiches are a great start to your morning.