vim-indent-detect

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

commit
56628f8571a4ad023691e19d84c9333f5dcd22bb
parent
183262b3d711401df8c3e3900e8193667d20bf11
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2016-09-11 23:15
rename to DetectIndent

Diffstat

M plugin/detectindent.vim 4 ++--

1 files changed, 2 insertions, 2 deletions


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

@@ -19,7 +19,7 @@ function! SetIndent(...)
   19    19 	let &l:softtabstop = width
   20    20 endfunction
   21    21 
   22    -1 function! MatchIndent()
   -1    22 function! DetectIndent()
   23    23 	let n = 1
   24    24 
   25    25 	while n <= 50
@@ -46,4 +46,4 @@ command! Tabs call SetIndent(0, 2)
   46    46 command! Spaces call SetIndent(1, 4)
   47    47 command! Spaces2 call SetIndent(1, 2)
   48    48 
   49    -1 autocmd BufNewFile,BufRead * call MatchIndent()
   -1    49 autocmd BufNewFile,BufRead * call DetectIndent()