Showing posts with label auto. Show all posts
Showing posts with label auto. Show all posts

Monday, February 9, 2009

Autocommands

You can add an auto command to your vimrc to have it automatically executed when a certain type of file is loaded. As an example, I use the following to convert tabs to spaces when a PHP file is loaded.

auto BufReadPost *.php retab!

See :help auto for the full info.