vim-autoformat
Provide code formatting in Vim by integrating existing code formatters
vim-autoformat is a universal “format this buffer” interface for Vim and Neovim that routes your file through the right external formatter with a single command. Instead of remembering dozens of tool names and CLI flags, you call one mapping and the plugin picks an appropriate backend based on filetype and configuration. It supports a wide range of formatters—such as Black, isort, yapf, Prettier, clang-format, gofmt, rustfmt, shfmt, and many more—while letting you override arguments per project or per filetype. Results flow back into the buffer, replacing content or selected regions, and can integrate with quickfix for error reporting when a tool fails. ...