VimThe 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.

← Previous | Index | Next →
Copyright © 2005 Shlomi Fish