Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible expensive syntax highlighting #1

Open
timss opened this issue Mar 18, 2016 · 1 comment
Open

Possible expensive syntax highlighting #1

timss opened this issue Mar 18, 2016 · 1 comment

Comments

@timss
Copy link
Member

timss commented Mar 18, 2016

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:

@timss
Copy link
Member Author

timss commented Feb 11, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant