summaryrefslogtreecommitdiff
path: root/plug-config/sneak.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plug-config/sneak.vim')
-rw-r--r--plug-config/sneak.vim34
1 files changed, 34 insertions, 0 deletions
diff --git a/plug-config/sneak.vim b/plug-config/sneak.vim
index b3e8f561..3bf54db2 100644
--- a/plug-config/sneak.vim
+++ b/plug-config/sneak.vim
@@ -1 +1,35 @@
+" ; repeat forward , repeat backwards
let g:sneak#label = 1
+
+" 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
+
+" I wanted more options idc about pressing the same key twice
+" let g:sneak#target_labels = ";abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ?0"
+
+" Cool prompts
+" let g:sneak#prompt = '🕵'
+" let g:sneak#prompt = '🔎'
+
+" 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
+
+" 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
+
+" Useful info
+" s<Enter> | Repeat the last Sneak.
+" S<Enter> | Repeat the last Sneak, in reverse direction.
+" silent! call repeat#set("\<Plug>Sneak_s", v:count)
+" silent! call repeat#set("\<Plug>Sneak_S", v:count)