0
I'm using Arch Linux and I installed vim from the official repos.
It runs OK, but when I have syntax and cursor highlight turned on, it is extremely slow.
I already trying running only the 'core' of vim, disabling my ~/.vim
, ~/.vimrc
and also the plugin and autoload folder on the vim runtime directory.
I have a decent machine, Intel i5, 4GB ram and a decent video card that runs Gnome-Shell, Unity and 3D games just fine. It happens on other distros and even with small files.
Any clues?
Vim's responsiveness when syntax highlighting is enabled depends on the file type, the file size, and on line lengths. It has a known performance issue highlighting extremely long lines. Execute ":help syntax.txt" and search for "slow". You'll find comments on file types and conditions that can cause Vim to be slow, as well as tips for improving performance. – garyjohn – 2012-05-31T00:28:07.190
I run Arch on a considerably less capable machine (athlon XP 1800+ laptop) and vim works fine. Is it slow in graphical mode, or only in console mode? If it's slow in the console only, I had the same issue, and I solved it by fiddling with the drivers and enabling KMS (I don't remember exactly what I did, since it was some time ago). – user55325 – 2012-05-31T04:31:45.177
Is it slow on all files or just some particular ones? I've met large XML files that bring Vim to a halt with syntax HL on. Best effort is then to just disable syntax HL for the time being. – Daniel Andersson – 2012-05-31T07:15:53.213