vim syntax highlight improve performance

RusAlex picture RusAlex · Jan 23, 2011 · Viewed 9.8k times · Source

How do I improve performance when I'm scrolling my files and coding them? With syntax highlighting, vim is so slow. When I switch it off, everything is ok. Is there a way or any recommendations to make it faster?

Answer

Gonzalo Serrano picture Gonzalo Serrano · Aug 25, 2011

Try these settings:

set nocursorcolumn
set nocursorline
set norelativenumber
syntax sync minlines=256

Also check http://vim.wikia.com/wiki/Fix_syntax_highlighting