summaryrefslogtreecommitdiff
path: root/vim/.vim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vim/after/plugin')
-rw-r--r--vim/.vim/after/plugin/generalized_motion.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/.vim/after/plugin/generalized_motion.vim b/vim/.vim/after/plugin/generalized_motion.vim
index 87ea9ed..112016c 100644
--- a/vim/.vim/after/plugin/generalized_motion.vim
+++ b/vim/.vim/after/plugin/generalized_motion.vim
@@ -1,4 +1,8 @@
"" More general ; {{{1
+" if exists('g:loaded_sneak_plugin')
+
+" endif
+
let g:generalized_motion = "f"
function! Generalized_motion(...)
if a:0 > 0
@@ -20,7 +24,7 @@ function! Generalized_motion(...)
call feedkeys(';', 'n')
endtry
endfunction
-for mapping in ['f', 't', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b']
+for mapping in ['f', 't', 's', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b']
exe "nmap <silent>" mapping ":<c-u>call Generalized_motion('".mapping."')<cr>"
endfor
nnoremap <silent> ; :<c-u>call Generalized_motion()<cr>