add editor config setup to vim

This commit is contained in:
Jeff Lance 2021-03-03 12:21:07 +01:00
parent cb7aacd794
commit d62375a340
3 changed files with 64 additions and 44 deletions

View File

@ -1,7 +1,7 @@
" File : .vimrc
" File : init.vim
" Author : Jeff LANCE <email@jefflance.me>
" Date : 15.04.2015
" Last Modified Date: 27.01.2021
" Last Modified Date: 03.03.2021
" Last Modified By : Jeff LANCE <email@jefflance.me>
""""""""""""""""""""""""""""""""""""""""""""""
@ -471,6 +471,16 @@ let g:deoplete#enable_at_startup = 0
" }}}
" Editorconfig {{{
" -----
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
au FileType gitcommit let b:EditorConfig_disable = 1
" -----
" }}}
" FZF {{{
" -----
@ -498,7 +508,7 @@ endif
let g:header_field_author = 'Jeff LANCE'
let g:header_field_author_email = 'email@jefflance.me'
let g:header_auto_add_header = 0
let g:header_auto_add_header = 1
" -----
" }}}

View File

@ -1,7 +1,7 @@
" File : plug.vim
" Author : Jeff LANCE <email@jefflance.me>
" Date : 15.04.2015
" Last Modified Date: 24.06.2020
" Last Modified Date: 03.03.2021
" Last Modified By : Jeff LANCE <email@jefflance.me>
""""""""""""""""""""""""""""""""""""""""""""""""
@ -51,6 +51,9 @@ Plug 'roxma/vim-hug-neovim-rpc'
" Buffer exploration
Plug 'bagrat/vim-buffet', { 'as': 'buffet' }
" Editorconfig
Plug 'editorconfig/editorconfig-vim'
" Folding
Plug 'Konfekt/FastFold'

View File

@ -10,21 +10,28 @@ root = true
[{*,.*}]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 80
charset = utf-8
[*.py]
indent_style = space
indent_size = 4
max_line_length = 79
[{Makefile,makefile,*.mk}]
indent_style = tab
[*.md]
indent_style = space
[*.py]
indent_style = space
indent_size = 4
max_line_length = 79
[*.sh]
indent_style = space
max_line_length = 0
[*.vim]
indent_style = space
max_line_length = 0