use old ctrl-b bindings for vim

This commit is contained in:
Cyryl Płotnicki 2022-10-22 23:06:46 +01:00
parent 7c1c59a196
commit 0d205e0a74

View file

@ -91,16 +91,6 @@ omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a) xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a) omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Use CTRL-S for selections ranges. " Use CTRL-S for selections ranges.
" Requires 'textDocument/selectionRange' support of language server. " Requires 'textDocument/selectionRange' support of language server.
nmap <silent> <C-s> <Plug>(coc-range-select) nmap <silent> <C-s> <Plug>(coc-range-select)