aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
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 /vim/vimrc
parentUpdate cursorline_current.vim plugin (diff)
downloaddotfiles-29b44b505186010b5be1e06f78891f366cd47cc4.tar.gz
dotfiles-29b44b505186010b5be1e06f78891f366cd47cc4.zip
Add "whole buffer" object an experiment
Diffstat (limited to 'vim/vimrc')
-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)