sneak.vim 920 B

123456789101112131415161718192021222324252627282930313233
  1. let g:sneak#label = 1
  2. " case insensitive sneak
  3. let g:sneak#use_ic_scs = 1
  4. " imediately move tot the next instance of search, if you move the cursor sneak is back to default behavior
  5. let g:sneak#s_next = 1
  6. " remap so I can use , and ; with f and t
  7. map gS <Plug>Sneak_,
  8. map gs <Plug>Sneak_;
  9. " Change the colors
  10. highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan
  11. highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow
  12. " Cool prompt
  13. let g:sneak#prompt = '🔎 '
  14. " I like quickscope better for this since it keeps me in the scope of a single line
  15. " map f <Plug>Sneak_f
  16. " map F <Plug>Sneak_F
  17. " map t <Plug>Sneak_t
  18. " map T <Plug>Sneak_T
  19. " Useful info
  20. " s<Enter> | Repeat the last Sneak.
  21. " S<Enter> | Repeat the last Sneak, in reverse direction.
  22. " silent! call repeat#set("\<Plug>Sneak_s", v:count)
  23. " silent! call repeat#set("\<Plug>Sneak_S", v:count)