LunarVim/plug-config/sneak.vim

34 lines
920 B
VimL
Raw Normal View History

2020-04-28 05:04:13 +02:00
let g:sneak#label = 1
2020-05-04 04:00:46 +02:00
" case insensitive sneak
let g:sneak#use_ic_scs = 1
" imediately move tot the next instance of search, if you move the cursor sneak is back to default behavior
let g:sneak#s_next = 1
2020-05-05 03:28:46 +02:00
" remap so I can use , and ; with f and t
map gS <Plug>Sneak_,
map gs <Plug>Sneak_;
" Change the colors
highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan
highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow
2020-05-04 04:00:46 +02:00
2020-05-06 03:22:29 +02:00
" Cool prompt
2020-05-10 19:29:31 +02:00
let g:sneak#prompt = '🔎 '
2020-05-04 04:00:46 +02:00
" I like quickscope better for this since it keeps me in the scope of a single line
" map f <Plug>Sneak_f
" map F <Plug>Sneak_F
" map t <Plug>Sneak_t
" map T <Plug>Sneak_T
" Useful info
2020-05-05 03:28:46 +02:00
2020-05-04 04:00:46 +02:00
" s<Enter> | Repeat the last Sneak.
" S<Enter> | Repeat the last Sneak, in reverse direction.
2020-05-05 03:28:46 +02:00
2020-05-04 04:00:46 +02:00
" silent! call repeat#set("\<Plug>Sneak_s", v:count)
" silent! call repeat#set("\<Plug>Sneak_S", v:count)