sneak.vim 1.1 KB

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