From 67cf58677f3b7c1846b9b248c65a87e414c7e13c Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 4 May 2020 21:28:46 -0400 Subject: sneak and quickscope updates --- plug-config/quickscope.vim | 3 ++- plug-config/sneak.vim | 21 ++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plug-config/quickscope.vim b/plug-config/quickscope.vim index c391f099..934166b6 100644 --- a/plug-config/quickscope.vim +++ b/plug-config/quickscope.vim @@ -1,6 +1,7 @@ " Trigger a highlight in the appropriate direction when pressing these keys: +" ; repeat forward , repeat backwards let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline -highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline +highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline let g:qs_max_chars=150 diff --git a/plug-config/sneak.vim b/plug-config/sneak.vim index 3bf54db2..e6d92936 100644 --- a/plug-config/sneak.vim +++ b/plug-config/sneak.vim @@ -1,4 +1,3 @@ -" ; repeat forward , repeat backwards let g:sneak#label = 1 " case insensitive sneak @@ -7,12 +6,17 @@ 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" +" remap so I can use , and ; with f and t +map gS Sneak_, +map gs Sneak_; + +" Change the colors +highlight Sneak guifg=black guibg=#00C7DF ctermfg=black ctermbg=cyan +highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow " Cool prompts " let g:sneak#prompt = '🕵' -" 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 Sneak_f @@ -20,16 +24,11 @@ let g:sneak#s_next = 1 " map t Sneak_t " map T Sneak_T -" remap so I can use , and ; with f and t -map gS Sneak_, -map gs 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 | Repeat the last Sneak. " S | Repeat the last Sneak, in reverse direction. + " silent! call repeat#set("\Sneak_s", v:count) " silent! call repeat#set("\Sneak_S", v:count) -- cgit v1.2.3