FS#36693 - [vim] 7.4 very slow with syntax highlighting on

Attached to Project: Arch Linux
Opened by Dariusz Dwornikowski (tdi) - Tuesday, 27 August 2013, 11:05 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 13 August 2018, 13:55 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Since the 7.4 upgrade I have been experiencing a lot of performance problems. First of all VIM has become very slow when syntax highlighting is on. I attach exemplary file seeds.rb in which navigating with hjkl causes vim to be almost unresponsive. I tested this with all the plugins dispabled, plain arch vim with my .vimrc attached. VIM is generally slow, especially in ruby erb files. I do a lot of python and latex, there everything seems normal. I have some segfaults too when opening some of erb files.


Additional info:
* package version(s) gvim-7.4.0-2



Steps to reproduce:
Open and navigate down.
   seeds.rb (4.3 KiB)
   .vimrc (2.6 KiB)
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 13 August 2018, 13:55 GMT
Reason for closing:  No response
Comment by Ike Devolder (BlackEagle) - Tuesday, 27 August 2013, 13:50 GMT
for the time being your statement is true even with the latest vim 7.4.007

what you can do for now as a workaround is add

set regexpengine=1

somewhere in your vimrc
Comment by Dariusz Dwornikowski (tdi) - Tuesday, 27 August 2013, 16:06 GMT
Thank you, this helped. It is a lot faster, and vim does not segfaults.
Comment by Thomas Dziedzic (tomd123) - Wednesday, 28 August 2013, 15:03 GMT
Please report this upstream to the vim mailing list
Comment by Gerardo Exequiel Pozzi (djgera) - Wednesday, 12 February 2014, 02:52 GMT
  • Field changed: Status (Assigned → Waiting on Response)
  • Field changed: Category (Packages: Extra → Upstream Bugs)
status? upstream link?
Comment by Ike Devolder (BlackEagle) - Sunday, 16 February 2014, 18:15 GMT
status: regexpengine=2 is possibly still slower than 1

some archives:
- https://groups.google.com/forum/#!msg/vim_dev/2ocXuJUe8IE
- https://groups.google.com/forum/#!topic/vim_dev/epm6TtHDQeY
- forwarded from this ticket: https://groups.google.com/forum/#!topic/vim_dev/2nDTs4AYPA8

if the poster could test and see if it is improved over time ?
Comment by Thomas Dziedzic (tomd123) - Sunday, 28 September 2014, 17:50 GMT
Just tested with vim 7.4.459-1 and I can still reproduce the issue.
It happens with :set regexpengine=1 and :set regexpengine=2

I got the attached vimrc down to a minimal test case:

```
syntax on
set cursorline
set cursorcolumn
```
Comment by Levente Polyak (anthraxx) - Monday, 26 February 2018, 21:14 GMT
Is this still being experienced?

Loading...