Format a file in Vim
An easy way to format and indent files in vim
Created Aug 15, 2024 - Last updated: Nov 22, 2024
🟧
vim
tips & tricks
Files are formatted using =
To format an entire file, =
can be applied to the length of the file.
gg
take you to the top of the file.G
takes you to the bottom of the file.
So to format the entire file gg=G