Skip to content

Instantly share code, notes, and snippets.

@perelo
perelo / flash.vim
Last active May 25, 2021 15:28
vim-flash
" From the discussion on reddit
" https://www.reddit.com/r/vim/comments/j62xmk/vim_and_ctags_make_ctrl_more_useful/
function! FlashOptionSet(option, how, what)
let s:option = a:option
exe 'let s:saved_option = &'.a:option
let s:saved_updatetime = &updatetime
if &updatetime > 200 | let &updatetime = 200 | endif
augroup FlashOptionSetAug
autocmd CursorHold,CursorHoldI <buffer> ++once