You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Buddy Sandidge 54eb2ab7ae Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
..
autoload Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
doc Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
plugin Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
tests Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
.editorconfig Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
.gitignore Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
.gitmodules Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
.travis.yml Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
CONTRIBUTORS Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
LICENSE Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
README.md Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago
mkzip.sh Merge commit 'b0ebc43029f9a92948af72165b3af0e75582ae27' as 'vim/bundle/editorconfig' 8 years ago

README.md

EditorConfig Vim Plugin

Build Status

This is an EditorConfig plugin for Vim. This plugin could be found on both GitHub and Vim online.

Installation

If your Vim is not compiled with +python feature (You can verify if the +python feature is included by running :ver. Most Linux distributions and with the official Windows binary have the +python feature enabled), please first download the EditorConfig core and follow the instructions in the README and INSTALL files to install it. This plugin would NOT work if neither +python nor EditorConfig core is available.

To install this plugin, you can use one of the following ways:

  • Download the archive and extract it into your Vim runtime directory (~/.vim on UNIX/Linux and $VIM_INSTALLATION_FOLDER\vimfiles on windows). You should have 3 sub-directories in this runtime directory now: "autoload", "doc" and "plugin".

OR

OR

  • Use Vundle by adding to your .vimrc Vundle plugins section:

      Plugin 'editorconfig/editorconfig-vim'
    

    Then remember to call :PluginInstall.

Supported properties

The EditorConfig Vim plugin supports the following EditorConfig properties:

  • indent_style
  • indent_size
  • tab_width
  • end_of_line
  • charset
  • insert_final_newline (Feature +fixendofline (available on Vim 7.4.785+) or PreserveNoEOL is required for this property)
  • trim_trailing_whitespace
  • max_line_length
  • root (only used by EditorConfig core)

All of the options which are supported are documented in editorconfig.txt and can be viewed by executing the following: :help editorconfig. You may need to execute :helptags ALL so that Vim is aware of editorconfig.txt.

Excluded patterns.

To ensure that this plugin works well with Tim Pope's fugitive, use the following patterns array:

let g:EditorConfig_exclude_patterns = ['fugitive://.*']

If you wanted to avoid loading EditorConfig for any remote files over ssh:

let g:EditorConfig_exclude_patterns = ['scp://.*']

Of course these two items could be combined into the following:

let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']

Exec Path

The file path to the EditorConfig core executable. You could set this value in your |vimrc| like this:

let g:EditorConfig_exec_path = 'Path to your EditorConfig Core executable'

Bugs and Feature Requests

Feel free to submit bugs, feature requests, and other issues to the issue tracker. Be sure you have read the contribution guideline!