Skip to content

Possible expensive syntax highlighting #1

@timss

Description

@timss

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions