Closed jgallen23 closed 13 years ago
You can do this using an autocmd, :help autocmd.txt . I don't think this is something that should be built in to the script, since Vim already has a generic mechanism for this kind of thing.
I think it's better to add to the doc, so the user can do the autocmd like:
autocmd BufRead * DetectIndent
Individual plugins shouldn't be covering basic Vim functionality in their docs.
@ciaranm for what its worth, I found this ticket to be very helpful as someone who is new to Vim and was unaware of this built-in functionality.
I want to auto run detectindent when I open a file. It would be nice to have an option that I can pass for it to auto load. Is there a command I can put in my .vimrc to get this working until then?