diff options
| author | jdhao <jdhao@hotmail.com> | 2020-11-21 23:26:09 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-11-21 23:26:09 +0800 |
| commit | 647a2616f083b0b33dc3d3177500d9015375ffad (patch) | |
| tree | d18c483042c263bbb44adf5528829241f104225f | |
| parent | 6b192cecbd5a6d39d1788988f8a91c1b1091b01c (diff) | |
add text objects for entire buffer
| -rw-r--r-- | core/mappings.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/mappings.vim b/core/mappings.vim index bda37d2..abcd18c 100644 --- a/core/mappings.vim +++ b/core/mappings.vim @@ -184,6 +184,11 @@ nnoremap <Right> <C-W>l nnoremap <Up> <C-W>k nnoremap <Down> <C-W>j +" Text objects for URL xnoremap <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> "} |
