From 25aff99826ee73c5d6823d3767993a6bd09960fd Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 16 Aug 2018 13:47:52 +0200 Subject: [vifm] Add mappings --- vim/.vimrc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index 2b10b4d..87647ab 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -165,7 +165,17 @@ nnoremap cpd :OnlineThesaurusCurrentWord nnoremap ,pi :PlugInstall nnoremap ,pu :PlugUpdate nnoremap ,pc :PlugClean -nnoremap ,p Remembrall(',p') + +" Remembrall +if &runtimepath =~ 'remembrall' + 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 +endif " Ultisnips nnoremap cps :UltiSnipsEdit @@ -210,14 +220,6 @@ let g:localvimrc_whitelist='/home/*' " NerdTree let g:NERDTreeHijackNetrw = 0 -" Remembrall -nnoremap ,, :call remembrall#remind('n', '') -nnoremap y :call remembrall#remind('n', 'y') - -augroup remembrall - autocmd FileType tex nnoremap ,l Remembrall(',l') -augroup END - " Ultisnips let g:UltiSnipsEditSplit="horizontal" let g:UltiSnipsExpandTrigger="" @@ -371,7 +373,7 @@ nnoremap >B :BufSurfForward:bd! # " Alternate file nnoremap  -nnoremap  +nnoremap :Buffers " Source current file nnoremap ,s :source % -- cgit v1.2.3