diff options
| author | Anton Bobov <abobov@gmail.com> | 2021-05-03 15:05:10 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2021-05-03 15:05:22 +0500 |
| commit | 33b7c00410e77bddfd0059454249136560ca7da7 (patch) | |
| tree | fa06e071683e0f27024f3cfe923f2ae8fb850d0a | |
| parent | c9ae00f9343b2f228d9c0763a219c70e40f165b6 (diff) | |
Add vim editorconfig.
| -rw-r--r-- | files/.editorconfig | 12 | ||||
| -rw-r--r-- | files/.vimrc | 7 | ||||
| -rw-r--r-- | install.conf.yaml | 1 |
3 files changed, 20 insertions, 0 deletions
diff --git a/files/.editorconfig b/files/.editorconfig new file mode 100644 index 0000000..8fe9e81 --- /dev/null +++ b/files/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +charset = utf-8 +indent_size = 2 +indent_style = space +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true + +[*.py] +indent_size = 4 diff --git a/files/.vimrc b/files/.vimrc index 60b2209..5c71785 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -83,6 +83,8 @@ Plugin 'https://github.com/digitaltoad/vim-jade.git' Plugin 'vim-pandoc/vim-pandoc' " Orgmode Plugin 'https://github.com/jceb/vim-orgmode' +" EditorConfig plugin for Vim +Plugin 'editorconfig/editorconfig-vim' "Plugin 'https://github.com/othree/xml.vim' "Plugin 'https://github.com/terryma/vim-multiple-cursors' @@ -657,6 +659,11 @@ if executable('ag') endif " }}} +" Editorconfig {{{ + +let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*'] + +" }}} " }}} " Load custom local config {{{ diff --git a/install.conf.yaml b/install.conf.yaml index ec4b125..25fb0a3 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -10,6 +10,7 @@ - link: ~/.aria2: files/.aria2 + ~/.editorconfig: files/.editorconfig ~/.mpv: files/.mpv ~/.ssh: files/.ssh ~/.lessfilter.sh: files/.lessfilter.sh |
