I'm using 256-colors theme in vim (set t_Co=256) and all php files opens about 8 seconds.
I really want to use 256-colors mode, it looks much prettier, but I can't get rid of this lags.
Right way to find what cause performance problems in VIM is to profile it or check debug output (optionally - comparing with vim setup without troubles).
Comparing debug output:
vim -c 'set verbosefile=./vim1.log verbose=12' -c 'command that causes problem' -c 'qa!'
vim -c 'set verbosefile=./vim2.log verbose=12' -c 'qa!'
diff ./vim1.log ./vim2.log
In some cases you can also increase verbose level up to 15
Profiling:
vim -c 'profile start ./vim.profile' -c 'profile func *' -c 'profile file *' -c 'command that causes problem' -c 'qa!'