Skip to Main Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced content levelIntermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim
Tip 27Respecting 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning the vi and Vim Editors, 8th Edition

Learning the vi and Vim Editors, 8th Edition

Arnold Robbins, Elbert Hannah
Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page