diff options
| -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 |
