Hello, * On Thu, Nov 09, 2006 at 03:30:19PM +0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'd like to run these commands everytime I edit a MATLAB file. How > > do I do that? > > > > set shiftwidth=4 > > set tabstop=4 > > set expandtab > > Save these commands into your $VIM\vimfiles\after\syntax\matlab.vim > (Windows platform) > or ~/.vim/after/syntax/matlab.vim
This is not the right place to do that. ftplugins are the right solution. => ~/.vim/ftplugin/matlab.vim And BTW, don't use :set, but :setlocal when you want filetype specific settings. -- Luc Hermitte http://hermitte.free.fr/vim/
