summaryrefslogtreecommitdiffstats
path: root/indent/gitconfig.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2017-12-06 13:05:56 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2017-12-06 13:05:56 +0100
commit9fe009095afdb86f6f771109ac454ccfc5340f31 (patch)
tree1bb6b2fd7e2ff2b94bd3dd8ce6fdb735e873237b /indent/gitconfig.vim
parentdce9e8dec5ef51730291c7bbff3e3997433eabbd (diff)
downloadvim-polyglot-9fe009095afdb86f6f771109ac454ccfc5340f31.tar.gz
vim-polyglot-9fe009095afdb86f6f771109ac454ccfc5340f31.zip
Change julia provider to JuliaEditorSupport/julia-vim, closes #253
Diffstat (limited to 'indent/gitconfig.vim')
-rw-r--r--indent/gitconfig.vim42
1 files changed, 0 insertions, 42 deletions
diff --git a/indent/gitconfig.vim b/indent/gitconfig.vim
deleted file mode 100644
index e0e4a456..00000000
--- a/indent/gitconfig.vim
+++ /dev/null
@@ -1,42 +0,0 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1
-
-" Vim indent file
-" Language: git config file
-" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2013 May 30
-
-if exists("b:did_indent")
- finish
-endif
-let b:did_indent = 1
-
-setlocal autoindent
-setlocal indentexpr=GetGitconfigIndent()
-setlocal indentkeys=o,O,*<Return>,0[,],0;,0#,=,!^F
-
-let b:undo_indent = 'setl ai< inde< indk<'
-
-" Only define the function once.
-if exists("*GetGitconfigIndent")
- finish
-endif
-
-function! GetGitconfigIndent()
- let sw = exists('*shiftwidth') ? shiftwidth() : &sw
- let line = getline(prevnonblank(v:lnum-1))
- let cline = getline(v:lnum)
- if line =~ '\\\@<!\%(\\\\\)*\\$'
- " odd number of slashes, in a line continuation
- return 2 * sw
- elseif cline =~ '^\s*\['
- return 0
- elseif cline =~ '^\s*\a'
- return sw
- elseif cline == '' && line =~ '^\['
- return sw
- else
- return -1
- endif
-endfunction
-
-endif