1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add text objects for entire buffer

This commit is contained in:
jdhao 2020-11-21 23:26:09 +08:00
parent 6b192cecbd
commit 647a2616f0

View File

@ -184,6 +184,11 @@ nnoremap <Right> <C-W>l
nnoremap <Up> <C-W>k nnoremap <Up> <C-W>k
nnoremap <Down> <C-W>j nnoremap <Down> <C-W>j
" Text objects for URL
xnoremap <silent> iu :<C-U>call text_obj#URL()<CR> xnoremap <silent> iu :<C-U>call text_obj#URL()<CR>
onoremap <silent> iu :<C-U>call text_obj#URL()<CR> onoremap <silent> iu :<C-U>call text_obj#URL()<CR>
" Text objects for entire buffer
xnoremap <silent> iB 0ggoG
onoremap <silent> iB :normal viB<CR>
"} "}