[vim] chech if have python for indent_finder
This commit is contained in:
parent
ee62baba4c
commit
63f499f13c
5
.vimrc
5
.vimrc
@ -152,8 +152,9 @@ if has("autocmd")
|
||||
" enable file type detection and do language-dependent indenting
|
||||
" filetype plugin indent on
|
||||
" detect indentation see http://www.freehackers.org/Indent_Finder
|
||||
autocmd BufReadPost * execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
||||
|
||||
if has('python')
|
||||
autocmd BufReadPost * execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' )
|
||||
endif
|
||||
else
|
||||
" auto-indent
|
||||
set autoindent
|
||||
|
Loading…
Reference in New Issue
Block a user