davidosomething / vim-editorconfig

Yet another EditorConfig (http://editorconfig.org) plugin for vim written in vimscript only

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-editorconfig

Yet another Vim plugin for EditorConfig

Description

Supported Properties

  • charset
  • end_of_line
  • indent_size
  • indent_style
  • insert_final_newline
  • max_line_length
  • root
  • tab_width
  • trim_trailing_whitespace

Properties below are enabled only in this plugin:

  • c_include_path
  • local_vimrc
  • spell_enabled
  • spell_language

V.S.

editorconfig-vim is official vim plugin for EditorConfig. This requires if_python interface or external python interpreter.

vim-editorconfig is written in pure vimscript. You can use editorconfig without any external interfaces such as if_python.

Usage

  1. Install the plugin
  2. Locate .editorconfig
  3. Edit some files

Features

local_vimrc

Source specified vimrc file when you edit a buffer.

It behaves like thinca/vim-localrc.

[*.md]
local_vimrc = .local.vimrc

Options

g:editorconfig_blacklist

Exclude regexp patterns for filetypes or filepaths

let g:editorconfig_blacklist = {
    \ 'filetype': ['git.*', 'fugitive'],
    \ 'pattern': ['\.un~$']}

g:editorconfig_root_chdir

Automatically :lcd If root = true exists in .editorconfig.

g:editorconfig_verbose

Show verbose messages

let g:editorconfig_verbose = 1

Install

Use your favorite plugin manager.

License

MIT License

Author

sgur

About

Yet another EditorConfig (http://editorconfig.org) plugin for vim written in vimscript only

License:MIT License


Languages

Language:Vim Script 100.0%