aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-09-07 11:33:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-09-07 11:33:08 +1200
commit29b44b505186010b5be1e06f78891f366cd47cc4 (patch)
tree78d5d33d76199ddd459d846ade8f1bf33c58d9e7
parent51a9573e1ba60b7f7b2d16454049e596e31f9021 (diff)
downloaddotfiles-29b44b505186010b5be1e06f78891f366cd47cc4.tar.gz
Add "whole buffer" object an experiment
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 2f60a31b..7237cfd1 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -401,6 +401,9 @@ nnoremap <Bslash>> :<C-U>'[,']><CR>
" \_ uses last changed or yanked text as an object
onoremap <Bslash>_ :<C-U>normal! `[v`]<CR>
+" \% uses entire buffer as an object
+onoremap <Bslash>% :<C-U>normal! 1GVG<CR>
+
" \{ and \} move to lines with non-space chars before current column
nmap <Bslash>{ <Plug>(VerticalRegionUpNormal)
nmap <Bslash>} <Plug>(VerticalRegionDownNormal)