Wednesday, June 5, 2013

Re: relativenumber is very very slow.

On Wed, Jun 05, 2013 at 05:49:47AM -0700, Hexchain Tong wrote:
> I'm having the same problem with an XML file (attached). ':set rnu' makes moving and scrolling very very slow both in Vim (running in Konsole) and GVim. ':set nu' is fast, though.
>
> I've tried setting lazyredraw, (no)ttyfast and ttyscroll=3, but none of them is a good solution.
>
> It is strange that no other files seems to cause the same problem.

I saw the slowdown as well. I turned off relative numbers and it was
still slow. I turned of line numbering all together, and it was still
slow.

Then I turned off syntax highlighting (:syntax off) and the slowdown
went away. I'm of the opinion that syntax highlighting for TEX and
XML files is just slow.

--
Erik Falor http://unnovative.net
Registered Linux User #445632 http://linuxcounter.net

No comments: