vim-indent-detect

A Vim plugin for handeling indentation.
git clone https://git.ce9e.org/vim-indent-detect.git

commit
3fc3058c1a367b4eddfc867beab3d1bd396cc2d4
parent
3e2e87fc578005eec4ec17bf43807beef90dab47
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2016-09-22 05:05
space indent must be at least 2

Diffstat

M plugin/detectindent.vim 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/plugin/detectindent.vim b/plugin/detectindent.vim

@@ -32,7 +32,7 @@ function! DetectIndent()
   32    32 		if line =~ '^	'
   33    33 			call SetIndent(0)
   34    34 			return
   35    -1 		elseif line =~ '^ '
   -1    35 		elseif line =~ '^  '
   36    36 			call SetIndent(1, strlen(matchstr(line, '^ \+')))
   37    37 			return
   38    38 		endif