IndentConsistencyCop is a Vim plugin that analyzes the indent used in a buffer and checks the consistency of the indent widths and methods.
In order to achieve consistent indentation, one needs to agree on the indentation width and method. This could be anything from 2, 4 or 8 spaces, only tabs, only spaces, or a mix of tabs and spaces that minimizes the number of spaces. Unfortunately, different people use different editors and cannot agree on "the right" width and method. Consistency, however, is important to make the text look the same in different editors and on printouts.
What's more, if any editor inadvertently converts tabs and spaces, version control and diff'ing will be much harder to do. But with IndentConsistencyCop, you can rest easy knowing that the plugin examines the indent of the buffer and will alert you if there are conflicting ones, or if bad combinations of tabs and spaces are found.
The plugin acts like a friendly policeman, offering help in locating the offenders. You can easily trigger it by typing in the command :IndentConsistencyCop. It's that simple. I found this plugin incredibly helpful as it alerted me to inconsistent indentation in a buffer I was working on. It even generated a report that showed me the conflicting settings, such as tabstop, which was found in 1838 of 3711 lines.
Overall, I highly recommend IndentConsistencyCop to anyone who is looking for a reliable and efficient way to achieve consistent indentation in their code.
Version 1.20.016: N/A