It has happened multiple times that I am doing a code review and I find issues like trailing white space or tabs instead of spaces. This annoys me because it is something that your editor should do for you for free. It annoys me even more when I ask the developer to configure their editor to remove trailing white space and they tell me they don’t know how to do it. In most scenarios they are using Eclipse or some other fancy IDE that I am not familiar with, so I can’t help them much. EditorConfig will help me with that problem.
From now on I plan to add an .editorconfig file to all my projects and simply ask my colleagues to install the plugin on their IDE.
Lets see how to install the plugin for VIM. Assuming you have pathogen installed you should only need this: