aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-09-02 23:27:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-09-02 23:27:00 +1200
commit02d2f19ea6036f2be9fdf94bf0e53591a7003721 (patch)
treec9fddfddabe68c4638c87c8e96d681e36f21c3b5
parentRemove visual_block_suspend_wrap.vim (diff)
downloaddotfiles-02d2f19ea6036f2be9fdf94bf0e53591a7003721.tar.gz
dotfiles-02d2f19ea6036f2be9fdf94bf0e53591a7003721.zip
Use \_ as Vim text object for `[,`] marks
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index caa52867..640f334a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -389,6 +389,9 @@ nnoremap <Bslash>. :<C-U>lmake!<CR>
nnoremap <Bslash><lt> :<C-U>'[,']<lt><CR>
nnoremap <Bslash>> :<C-U>'[,']><CR>
+" \_ uses last changed or yanked text as an object
+onoremap <Bslash>_ :<C-U>normal! `[v`]<CR>
+
" \{ and \} move to lines with non-space chars before current column
nmap <Bslash>{ <Plug>(VerticalRegionUpNormal)
nmap <Bslash>} <Plug>(VerticalRegionDownNormal)