Setting regexpengine=1 drops this back down to 1.4 seconds. So either this is the root cause of this particular slowdown (i.e. when syntax highlighting gitolite format files) or at least compensates for whatever is the root cause. According to https://stackoverflow.com/posts/38521226 the default regexp engine changed with Vim 7.4. This was the version shipped with Trusty onwards so in theory was already in use on 14.04 and 16.04 ubuntu so something doesnt quite tie up
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to vim in Ubuntu. https://bugs.launchpad.net/bugs/1767314 Title: Ubuntu Bionic vi/vim not working correctly Status in vim package in Ubuntu: Confirmed Bug description: The vim default configuration in Bionic does not match Ubuntu 17.10 nor Centos 7 and is hard to use. It auto-inserts tabs or spaces, and the '/' search mode command works differently (pressing enter is required before you can use cursors left/right). For some discussion, please see https://askubuntu.com/questions/1026820/vi-vim-usage-in-ubuntu-bionic- not-normal/1028684#1028684 Setting :set nocompatbile in ~/.vimrc fixes it, but this should not be required. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1767314/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp