vimperator.vim
vimperator.vim copied to clipboard
Possible expensive syntax highlighting
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
Note to self/interested contributors; this issue is still present with the example configuration.