Skip to content

serna37/vim-fscope-around

Repository files navigation

vim-fscope-around

inspired by quick-scope.

Highlight f-char not only current row, around row around-demo.gif

And lazy mode, disappear highlight 2 sec after cursor moved by default. lazy_demo

After H M L 5 row move, target char must be highlighted. usage.gif with vim-anchor5, clever-f

Provide smooth cursor move with also edgemotion fscope_anchor5_edgemotion with vim-anchor5, edgemotion, clever-f

installation

Plug 'serna37/vim-fscope-around'

usage

" 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!!

custom

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

license

MIT

About

Highlight f-char not only current row, around row

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published