Tip 27 | Respecting Project Conventions |
When working on multiple codebases, you may encounter different conventions for indentation size, indentation style, character encodings, and so on. The .editorconfig file has become a de-facto standard for specifying settings, scoped by filetype and directory. This format is designed to be editor-agnostic, and you can make Vim understand these files by installing a plugin.
Preparation
In this tip, you’ll use the vim-editorconfig plugin[53] by sgur. You can install it to your bundle package like this:
=> | $ cd $VIMCONFIG/pack/bundle/start |
=> | $ git clone https://github.com/sgur/vim-editorconfig.git |
Get Modern Vim now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.