From fa13eb00716574d385fd9d64c2163495dd22588b Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 22 Mar 2018 10:50:27 +0100 Subject: [PATCH] vim: indent_finder does not use vim python module --- .vimrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 6905b38..a1314d4 100644 --- a/.vimrc +++ b/.vimrc @@ -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