summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-08-16 13:47:52 +0200
committerUrbain Vaes <urbain@vaes.uk>2018-08-16 13:47:52 +0200
commit25aff99826ee73c5d6823d3767993a6bd09960fd (patch)
tree6c9c6ed1fc340cb3c874c7492250b18fe70483cd /vim/.vimrc
parent1e8ec5104058f5cbb15728f68cd9e6a71892978e (diff)
[vifm] Add <c-{h,l}> mappings
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc22
1 files changed, 12 insertions, 10 deletions
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<cr>
nnoremap ,pi :PlugInstall<cr>
nnoremap ,pu :PlugUpdate<cr>
nnoremap ,pc :PlugClean<cr>
-nnoremap <buffer> <nowait> <expr> ,p Remembrall(',p')
+
+" Remembrall
+if &runtimepath =~ 'remembrall'
+ 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> <nowait> <expr> ,l Remembrall(',l')
+ augroup END
+endif
" Ultisnips
nnoremap cps :UltiSnipsEdit<cr>
@@ -210,14 +220,6 @@ let g:localvimrc_whitelist='/home/*'
" NerdTree
let g:NERDTreeHijackNetrw = 0
-" Remembrall
-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> <nowait> <expr> ,l Remembrall(',l')
-augroup END
-
" Ultisnips
let g:UltiSnipsEditSplit="horizontal"
let g:UltiSnipsExpandTrigger="<tab>"
@@ -371,7 +373,7 @@ nnoremap <silent> >B :BufSurfForward<cr>:bd! #<cr>
" Alternate file
nnoremap <bs> 
-nnoremap <tab> 
+nnoremap <tab> :Buffers<cr>
" Source current file
nnoremap ,s :source %<cr>