Search code examples
vimvicode-formatting

Auto formatting for vi?


Does an auto-formatting tool exist for vi that'll allow me to define per language preferences?

edit: I'm not looking for syntax highlighting. I'm looking for something that will apply formatting rules to my code. (Like brace positioning, spaces around oeprators, etc)


Solution

  • Well, there's Vim which comes with a lot of languages covered already and which is easy to customize per language.