vimperator.vim icon indicating copy to clipboard operation
vimperator.vim copied to clipboard

Possible expensive syntax highlighting

Open timss opened this issue 9 years ago • 1 comments

Current syntax rules can be slow when combined with Vim options such as cursorline that require a full redraw.

One of the reasons seems to be due to the use of lookahead and lookbehind regex (:h \@= etc). Unsure if this is avoidable with the current design or vimperator.vim's "fault".

Example Vim configuration:

set nocompatible
filetype plugin indent on
syntax on
set cursorline

Version:

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Mar 31 2015 23:36:07)
Included patches: 1-488, 576
...

Example file: my personal .vimperatorrc

Resources:

  • https://github.com/vim/vim/issues/282
  • https://github.com/vim-ruby/vim-ruby/issues/243

timss avatar Mar 18 '16 23:03 timss

Note to self/interested contributors; this issue is still present with the example configuration.

timss avatar Feb 11 '17 15:02 timss