vim: indent_finder does not use vim python module
This commit is contained in:
parent
7d46051996
commit
fa13eb0071
10
.vimrc
10
.vimrc
@ -188,12 +188,10 @@ augroup END
|
|||||||
|
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
" detect indentation see http://www.freehackers.org/Indent_Finder
|
" detect indentation see http://www.freehackers.org/Indent_Finder
|
||||||
if has('python')
|
if &expandtab
|
||||||
if &expandtab
|
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default space --default-size ' . &tabstop .' "' . expand('%') . '"' )
|
||||||
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default space --default-size ' . &tabstop .' "' . expand('%') . '"' )
|
else
|
||||||
else
|
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default tab --default-size ' .&tabstop .' "' . expand('%') . '"' )
|
||||||
autocmd BufReadPost /* execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output --default tab --default-size ' .&tabstop .' "' . expand('%') . '"' )
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
" auto-indent
|
" auto-indent
|
||||||
|
Loading…
Reference in New Issue
Block a user