diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-12-22 13:19:24 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-12-22 13:19:24 +0100 |
commit | fe9f7f011e91fa4cf2bfecbf408688d4223f437d (patch) | |
tree | 4a05ccc8da7aa470cfb06e53cea1e6989463d03c /vim | |
parent | ee96831c8b9ec7c5a77466f888e792d0f43103d5 (diff) |
Add generalized motion
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/after/plugin/generalized_motion.vim | 6 | ||||
-rw-r--r-- | vim/.vimrc | 2 |
2 files changed, 6 insertions, 2 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> @@ -158,10 +158,10 @@ nnoremap ,pc :PlugClean<cr> " Remembrall if &runtimepath =~ 'remembrall' + let g:remembrall_auto_accept = 0 nnoremap <buffer> <nowait> <expr> ,p Remembrall(',p') nnoremap <silent> ,, :call remembrall#remind('n', '')<cr> nnoremap <silent> y :<c-u>call remembrall#remind('n', 'y')<cr> - augroup remembrall autocmd FileType tex nnoremap <buffer> <silent> <expr> ,l Remembrall(',l') augroup END |