Skip to content

Delay the highlight to help speed scrolling #13

@stephenmm

Description

@stephenmm

It would be nice to be able to delay the highlight so that when you are scrolling quickly through code there is no studdering.

This script is similar to this one and has the delay:

hicursorwords.vim http://www.vim.org/scripts/script.php?script_id=4306

I even tried to hack in the "delay" function from that script into yours but it did not work:

function! s:HiCursorWords__startHilighting()
    let b:HiCursorWords__oldUpdatetime = &updatetime
    let &updatetime = g:HiCursorWords_delay
    augroup HiCursorWordsUpdate
        autocmd!
        autocmd CursorHold,CursorHoldI  *
                \ if exists('b:HiCursorWords__oldUpdatetime') | let &updatetime =     b:HiCursorWords__oldUpdatetime | endif
                \ | call s:HiCursorWords__execute()
    augroup END
endfunction       

So I thought I would ask if you guys knew how to do this or if you could add it to your script.

Thanks for the GREAT script!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions