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".
Best regards,
Tony.
--
Lewis's Law of Travel:
The first piece of luggage out of the chute doesn't belong to
anyone, ever.