editorconfig/editorconfig-vim — pull request #18 by kopischke (2014-10-24 10:30:59+00:00)
Title: Fix Vim help being treated as text files

Vim help authors rely on modelines to achieve consistent formatting; unluckily, editorconfig doesn’t know anything about them, and treats english Vim help files as bog standard '*.txt' files even when displayed by the `:h` command, i.e. being non-editable and needing consistent presentation. This results in help being displayed like this:

![netrw help pre-pr](https://cloud.githubusercontent.com/assets/80906/4768324/8030cf26-5b68-11e4-9b7f-3699d3046f01.png)

when it should be displayed like this (notice the difference in header alignment):

![netrw help post-pr](https://cloud.githubusercontent.com/assets/80906/4768332/879e1dae-5b68-11e4-8c45-c10072339de5.png)

Short of being able to defer to modelines (which Vim has no API for whatsoever, and which would open up thorny questions of priority anyway), this PR solves the issue for help files being displayed by `:h` by bailing out of editorconfig settings application when we meet a non-file buffer, of which *help* displays are one.