Use VimEnter to run DetectIndent automatically after files loaded.

- Before this patch the getline('$') return 1 every time, because buffer
  not loaded when vim read config, so we need to run after buffer
  loaded - use VimEnter for this.