]> git.zndr.dk Git - dotfiles.git/commitdiff
Add .editorconfig and use in vim
authorJannik Zander <jannikz@gmail.com>
Mon, 16 May 2016 12:19:04 +0000 (14:19 +0200)
committerJannik Zander <jannikz@gmail.com>
Mon, 16 May 2016 12:19:04 +0000 (14:19 +0200)
.editorconfig [new file with mode: 0644]
.gitconfig
.vimrc

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..2150195
--- /dev/null
@@ -0,0 +1,11 @@
+# ~/.editorconfig
+
+root = true
+
+[*]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
index 6ef32a653cfa7615942f06bf734185cf6d2d152d..64e38f0410ddd31d05d314fd44f22e6db108d2d0 100644 (file)
@@ -33,7 +33,7 @@
        who = shortlog -s --
        remotes = remote -v
        root = rev-parse --show-toplevel
-       
+
        cl = clone --recursive
 
        # Show the diff between the latest commit and the current state
@@ -54,7 +54,7 @@
        credit = "!f() { git commit --amend --author \"$1 <$2>\" -C HEAD; }; f"
        # List contributors with number of commits
        contributors = shortlog --summary --numbered
-       
+
        k = !gitk
 
        ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
@@ -67,7 +67,7 @@
        status = auto
        branch = auto
        interactive = auto
-       grep = auto     
+       grep = auto
 [github]
        user = jannikz
 [help]
diff --git a/.vimrc b/.vimrc
index 6f36edeb741cadcef06b36765c667c86a85931cf..6447bb974732c16b78b8756bcff591e234683232 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -24,6 +24,7 @@ Plug 'majutsushi/tagbar'
 Plug 'junegunn/fzf.vim'
 Plug 'thanthese/Tortoise-Typing'
 Plug 'altercation/vim-colors-solarized'
+Plug 'editorconfig/editorconfig-vim'
 
 call plug#end()
 
@@ -93,6 +94,9 @@ let g:fzf_launcher = "In_a_new_term_function %s"
 "For airline
 "let g:airline#extensions#tabline#enabled = 1
 
+let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
+let g:EditorConfig_verbose=1 
+
 " }}}2
 " Section: Commands {{{1
 "-----------------------