I'm using 256-colors theme in vim (set t_Co=256) and all php files opens about 8 seconds.
- It's my local dual-core machine
- It doesn't depend on color scheme I used (zenburn, wombat, wombat256)
- HTML, Python, JS or every else files opens momentary
- It takes about 8 sec even to create new php files (:o newfile.php)
- I've setting up my terminal correctly
- Everything fine if I'm using 16 colors (set t_Co=16)
I really want to use 256-colors mode, it looks much prettier, but I can't get rid of this lags.
vim -c 'set verbosefile=./vim.log verbose=12' -c 'o newfile.php' -c 'set verbose=0' -c 'qa!'
, thengvim -c 'set verbosefile=./gvim.log verbose=12' -c 'o newfile.php' -c 'set verbose=0' -c 'qa!'
, thendiff ./vim.log ./gvim.log
. If there are any significant differencies (other than changed script numbers), paste both files somewhere. If not, try doing this withverbose=15
. Or do this not with gvim, but with vim witht_Co=16
(or with any other configuration which does not cause troubles). – Phenolvim -c 'profile start ./vim.profile' -c 'profile func *' -c 'profile file *' -c 'o newfile.php' -c 'qa!'
, a table at the end of file./vim.profile
should give you information, about the function that caused trouble. – Phenol