2010-10-22 10:03:52 +02:00
|
|
|
|
|
|
|
augroup IndentFinder
|
|
|
|
au! IndentFinder
|
2011-01-12 16:17:37 +01:00
|
|
|
au BufRead *.* let b:indent_finder_result = system('python2 -c "import indent_finder; indent_finder.main()" --vim-output "' . expand('%') . '"' )
|
2010-10-22 10:03:52 +02:00
|
|
|
au BufRead *.* execute b:indent_finder_result
|
|
|
|
|
|
|
|
" Uncomment the next line to see which indentation is applied on all your loaded files
|
|
|
|
" au BufRead *.* echo "Indent Finder: " . b:indent_finder_result
|
|
|
|
augroup End
|
|
|
|
|