Reputation: 390
if I edit php file, Vim gets so slow... when I scroll text in normal mode or if I write in insert mode.
However my files aren't nothing special: until 90 characters per line, about 150 lines per file.
But Vim is slow only if I edit php file. When editing javascript with up to 700 lines and all plugins enabled, Vim runs fine (ps: for javascript I use much more performance demanding plugins).
In php files I do not get lags after I disable syntax highlighting (syntax off).
However, what's interesting Vim also runs fast with syntax highlighting enabled when I run Vim with flag:
--noplugin
With that known, I tried delete all my custom installed plugins and run Vim without --noplugin flag. - Unfortunately, vim still lagging when editing php files.
One important fact: It does not matter what kind of syntax highlighting I use. For all colorschemes behavior is same as described above.
I tried setting up these options (without change):
set nocursorcolumn
set nocursorline
syntax sync minlines=256
So, question is, what can I do for having vim which run without lags while editing php files?
I use Windows.
Upvotes: 3
Views: 1132
Reputation: 422
let g:loaded_matchparen = 1
At the top of my .vimrc solved the problem for me. This disabled the bundled plugin and my scrolling up and down and general speed of navigation improved substantially.
Upvotes: 2