inspired by quick-scope.
Highlight f-char
not only current row, around row
And lazy mode, disappear highlight 2 sec after cursor moved by default.
After H
M
L
5 row move
, target char must be highlighted.
with vim-anchor5, clever-f
Provide smooth cursor move with also edgemotion with vim-anchor5, edgemotion, clever-f
Plug 'serna37/vim-fscope-around'
" keymaps sample
nnoremap <silent><Leader><Leader>fa <Plug>(fscope-around-activate)
nnoremap <silent><Leader><Leader>fd <Plug>(fscope-around-deactivate)
nnoremap <silent><Leader><Leader>fs <Plug>(fscope-around-toggle)
" commands
" active
:FScope
" deactive
:FScope!
" toggle
:FScope!!
overrite in your .vimrc
" highlight priority (default 16)
let g:fscope_highlight_priority = 16
" target range (default 1) 0 = only current row
let g:fscope_around_row = 1
" active on start vim (default 1)
let g:fscope_init_active = 1
" lazy mode (default 1) -> highlight disappear 2 sec after cursor moved
let g:fscope_lazy_mode = 1
" highlight disappear time (default 3 sec)
let g:fscope_lazy_time = 1000
" color
hi FScopeCurrentRowPrimary ctermfg=204 cterm=BOLD
hi FScopeCurrentRowSecondary ctermfg=81 cterm=BOLD
hi FScopeAround ctermfg=81 cterm=BOLD
aug fmode_colors
au!
au ColorScheme * hi FScopeCurrentRowPrimary ctermfg=204 cterm=BOLD
au ColorScheme * hi FScopeCurrentRowSecondary ctermfg=81 cterm=BOLD
au ColorScheme * hi FScopeAround ctermfg=81 cterm=BOLD
aug END