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?
Try these settings:
set nocursorcolumn
set nocursorline
set norelativenumber
syntax sync minlines=256
Also check http://vim.wikia.com/wiki/Fix_syntax_highlighting
I was having an issue with slow performance from vim when editing certain CSS files.
I discovered that the cause in my case was large inline images using data urls.
To speed things up, I just modified my .vimrc like so:
set synmaxcol=200
This did the trick for me. Hope it helps someone else. Hat tip to https://superuser.com/questions/302186/vim-scrolls-very-slow-when-a-line-is-to-long
You can use the scrolljump
option. The scrolling won't be smoother but rather than scrolling line by line, it will scroll of scrolljump
lines at once.
You can try :set scrolljump=5
It does not solve your root issue, but it is a workaround.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With