aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
Diffstat (limited to 'files')
-rw-r--r--files/.editorconfig12
-rw-r--r--files/.vimrc7
2 files changed, 19 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 {{{