Vim script for automatically detecting indent settings