Hi all,

a cursory google search shows many posts about cursorline and relativenumber 
turning vim slower. In an old low-end netbook I'm using right now this is all 
too evident. Say I keep j pressed for a while while editing my (relatively 
small) .vimrc. As I understand the issue, cursorline and relativenumber trigger 
frequent screen redraws and the redraws, in turn, drag in the syntax 
highlighting machinery, which is presumably the culprit of general slowdown. 
The net result is slow, rough scrolling.

Now, the lazyredraw option helps a lot in the way to smooth scrolling. And one 
would say: obviously, as the problem was triggered by the constant redrawing, 
wasn't it? But looking at the documentation of lazyredraw it's not that obvious 
how it is helping in this case. Moreover, while scrolling the cursorline still 
moves and the relativenumbers still change (although the cursor itself is not 
shown or intermittently shown), so there is some redrawing happening.

So, mostly out of curiosity I'm asking for the savvy people here to explain me 
what is exactly happening when I'm scrolling with cursorline and relativenumber 
set, and why lazyredraw could possibly help to ameliorate the slowdown.

Thank you in advance
--
Carlos 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui