Dev-Tools/.vim/indent_finder/indent_finder.vim
Mathieu Maret 1132b1dd52 Add indent finder
Indent finder search for current indentation in the file
2015-07-07 15:05:36 +02:00

11 lines
436 B
VimL
Executable File

" Done in .vimrc
augroup IndentFinder
au! IndentFinder
au BufRead *.* let b:indent_finder_result = system('python2 -c "import indent_finder; indent_finder.main()" --vim-output "' . expand('%') . '"' )
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