From fb5043ffe50a8b53d6f07657224b147019b02e92 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 19 Oct 2019 18:01:35 +0100 Subject: Minor changes --- vim/.vim/after/plugin/generalized_motion.vim | 31 ---------------------------- 1 file changed, 31 deletions(-) delete mode 100644 vim/.vim/after/plugin/generalized_motion.vim (limited to 'vim/.vim') diff --git a/vim/.vim/after/plugin/generalized_motion.vim b/vim/.vim/after/plugin/generalized_motion.vim deleted file mode 100644 index a2b4284..0000000 --- a/vim/.vim/after/plugin/generalized_motion.vim +++ /dev/null @@ -1,31 +0,0 @@ -"" More general ; {{{1 - -let g:generalized_motion = "f" -function! Generalized_motion(...) - if a:0 > 0 - let g:generalized_motion=a:1 - 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("\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("\Sneak_;") | return | endif - try - if (g:generalized_motion == "]q") | cnext | endif - if (g:generalized_motion == "[q") | cprevious | endif - if (g:generalized_motion == "]a") | next | endif - 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("\unimpairedDirectoryPrevious") | endif - if (g:generalized_motion == "[f") | call feedkeys("\unimpairedDirectoryPrevious") | endif - catch - call feedkeys(';', 'n') - endtry -endfunction -for mapping in ['f', 't', 's', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b'] - exe "nmap " mapping ":call Generalized_motion('".mapping."')" -endfor -nnoremap ; :call Generalized_motion() -- cgit v1.2.3