IndentConsistencyCop 1.20.016

IndentConsistencyCop is a Vim plugin that examines the indent of the buffer and analyzes the used indent widths and methods.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
3.0/5 8
DEVELOPED BY:
Ingo Karkat
HOMEPAGE:
www.vim.org
CATEGORY:
ROOT \ Text Editing&Processing \ Vim Plugins
IndentConsistencyCop is a Vim plugin that examines the indent of the buffer and analyzes the used indent widths and methods.

In order to achieve consistent indentation, you need to agree on the indentation width (e.g. 2, 4 or 8 spaces), and the indentation method (only tabs, only spaces, or a mix of tabs and spaces that minimizes the number of spaces and is called 'softtabstop' in VIM).
Unfortunately, different people use different editors and cannot agree on "the right" width and method. Consistency is important, though, to make the text look the same in different editors and on printouts. If any editor inadvertently converts tabs and spaces, version control and diff'ing will be much harder to do.
The IndentConsistencyCop examines the indent of the buffer and analyzes the used indent widths and methods. If there are conflicting ones or if bad combinations of tabs and spaces are found, it alerts you and offers help in locating the offenders - just like a friendly policeman:

:IndentConsistencyCop
Found inconsistent indentation in this buffer; generated from these
conflicting settings:
- tabstop (1838 of 3711 lines)

Last updated on July 22nd, 2008

#indent consistency #buffer indent #Vim plugin #buffer #indent #consistency #Vim

Add your review!

SUBMIT