From fe9f7f011e91fa4cf2bfecbf408688d4223f437d Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 22 Dec 2018 13:19:24 +0100 Subject: Add generalized motion --- vim/.vim/after/plugin/generalized_motion.vim | 6 +++++- vim/.vimrc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'vim') 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 " mapping ":call Generalized_motion('".mapping."')" endfor nnoremap ; :call Generalized_motion() diff --git a/vim/.vimrc b/vim/.vimrc index dcb7149..e2f6104 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -158,10 +158,10 @@ nnoremap ,pc :PlugClean " Remembrall if &runtimepath =~ 'remembrall' + let g:remembrall_auto_accept = 0 nnoremap ,p Remembrall(',p') nnoremap ,, :call remembrall#remind('n', '') nnoremap y :call remembrall#remind('n', 'y') - augroup remembrall autocmd FileType tex nnoremap ,l Remembrall(',l') augroup END -- cgit v1.2.3