Am Dienstag, 5. Juni 2007 21:00 schrieb A.J.Mechelynck:
> Markus Schulz wrote:
> > hello,
> >
> > i want to setup some things only for php-source files. But i don't
> > get the autocmd local to buffer. The setup was also applied to
> > opened c++ files after the first php file.
> >
> > currently i have this inside my .vimrc (php.vim sets some tabulator
> > options)
> >
> > autocmd   FileType  php source ~/.vim/php.vim
> >
> > i've tried something like:
> >
> > autocmd   FileType  <buffer> php source ~/.vim/php.vim
> >
> > without luck.
> >
> > Any hints how i can achieve this?
>
> Instead of ~/.vim/php.vim, name it ~/.vim/after/ftplugin/php.vim and
> you won't even need an autocommand. (Create the directories if they
> don't exist).
>
> Make sure the script contains only local commands such as ":map
> <buffer>" and ":setlocal".

thanks. works great.

-- 
Markus Schulz 

Reply via email to