diff options
author | Urbain Vaes <urbain@vaes.uk> | 2018-08-16 13:47:52 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2018-08-16 13:47:52 +0200 |
commit | 25aff99826ee73c5d6823d3767993a6bd09960fd (patch) | |
tree | 6c9c6ed1fc340cb3c874c7492250b18fe70483cd | |
parent | 1e8ec5104058f5cbb15728f68cd9e6a71892978e (diff) |
[vifm] Add <c-{h,l}> mappings
-rw-r--r-- | vifm/.config/vifm/vifmrc | 2 | ||||
-rw-r--r-- | vim/.vimrc | 22 |
2 files changed, 14 insertions, 10 deletions
diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index f3d2b7d..bb719a2 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -31,6 +31,8 @@ nnoremap ,r :%rename<cr> nnoremap ,t :!urxvt &<cr> nnoremap ,l :!less %f<cr> nnoremap <c-d> :q<cr> +nnoremap <c-l> <c-w>l +nnoremap <bs> <c-w>h " To disable automatic tagging of search results nnoremap coh :set hlsearch!<cr> @@ -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> |