Vim The Vim Editor for Beginners #36

.vimrc

Location based commands

autocmd BufNewFile,BufRead ~/Download/unpack/graphics/*.pdb set filetype=perl

Will set the file type of all the files under ~/Download/unpack/graphics whose extension is ".pdb" to perl.

Copyright © 2005 Shlomi Fish