summaryrefslogtreecommitdiff
path: root/vim/.vim/after/plugin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2019-01-06 10:22:43 +0100
committerUrbain Vaes <urbain@vaes.uk>2019-01-06 10:22:43 +0100
commit4cc0693d76a370e4e4d65e09a36d8fb06e49bdec (patch)
tree14276a1e4c376a485593b70fa36a7526278c464b /vim/.vim/after/plugin
parentfe9f7f011e91fa4cf2bfecbf408688d4223f437d (diff)
[vim] Update generalized_motion
Diffstat (limited to 'vim/.vim/after/plugin')
-rw-r--r--vim/.vim/after/plugin/generalized_motion.vim7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/.vim/after/plugin/generalized_motion.vim b/vim/.vim/after/plugin/generalized_motion.vim
index 112016c..a2b4284 100644
--- a/vim/.vim/after/plugin/generalized_motion.vim
+++ b/vim/.vim/after/plugin/generalized_motion.vim
@@ -1,7 +1,4 @@
"" More general ; {{{1
-" if exists('g:loaded_sneak_plugin')
-
-" endif
let g:generalized_motion = "f"
function! Generalized_motion(...)
@@ -10,9 +7,11 @@ function! Generalized_motion(...)
echom "Generalized motion:" g:generalized_motion
if (g:generalized_motion == "f") | call feedkeys('f', 'n') | return | endif
if (g:generalized_motion == "t") | call feedkeys('t', 'n') | return | endif
+ if (g:generalized_motion == "s") | call feedkeys("\<Plug>Sneak_s") | return | endif
endif
if (g:generalized_motion == "f") | call feedkeys(';', 'n') | endif
if (g:generalized_motion == "t") | call feedkeys(';', 'n') | endif
+ if (g:generalized_motion == "s") | call feedkeys("\<Plug>Sneak_;") | return | endif
try
if (g:generalized_motion == "]q") | cnext | endif
if (g:generalized_motion == "[q") | cprevious | endif
@@ -20,6 +19,8 @@ function! Generalized_motion(...)
if (g:generalized_motion == "[a") | previous | endif
if (g:generalized_motion == "]b") | bnext | endif
if (g:generalized_motion == "[b") | bprevious | endif
+ if (g:generalized_motion == "]f") | call feedkeys("\<Plug>unimpairedDirectoryPrevious") | endif
+ if (g:generalized_motion == "[f") | call feedkeys("\<Plug>unimpairedDirectoryPrevious") | endif
catch
call feedkeys(';', 'n')
endtry