vim: indent_finder does not use vim python module

This commit is contained in:
Mathieu Maret 2018-03-22 10:50:27 +01:00
parent 7d46051996
commit fa13eb0071
1 changed files with 4 additions and 6 deletions

10
.vimrc
View File

@ -188,12 +188,10 @@ augroup END
if has("autocmd")
" detect indentation see http://www.freehackers.org/Indent_Finder
if has('python')
if &expandtab
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default space --default-size ' . &tabstop .' "' . expand('%') . '"' )
else
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default tab --default-size ' .&tabstop .' "' . expand('%') . '"' )
endif
if &expandtab
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default space --default-size ' . &tabstop .' "' . expand('%') . '"' )
else
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default tab --default-size ' .&tabstop .' "' . expand('%') . '"' )
endif
else
" auto-indent