commit 7454943bf890047c3959e3d2612968fbd90be5a5 parent 57762c94d90144a2b562245651562788897d8c63 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Wed, 4 Mar 2020 01:04:02 +0100 vim: operator fix Former-commit-id: 527c75cc52249993d78e0f32e96e4891afbad118 Diffstat:
M | vim/vimrc | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/vim/vimrc b/vim/vimrc @@ -819,9 +819,12 @@ nnoremap <expr> <leader>mm g:loaded_dispatch ? ":Make<CR>" : ":silent make<CR>\| nnoremap <expr> <leader>mc g:loaded_dispatch ? ":Make clean<CR>" : ":silent make clean<CR>\|:redraw!<CR>" " Buffer text object -vnoremap % :<C-U>silent! normal! ggVG<CR> -omap % :normal V%<CR> +vnoremap & :<C-U>silent! normal! ggVG<CR> +omap & :normal V&<CR> +" 'Up to current line' text object +vnoremap u :<C-u>silent! normal! ggV``<CR> +omap u :normal Vu<CR>`` " }}} " Autocommands {{{ if has('autocmd')