aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-10 00:20:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-10 00:20:51 +1200
commit192af8c7f52d0b9ab3660f83fd5605653a979bef (patch)
tree77908a6596f96e5dfb25276e5a60fe7b06f5c3f2 /vim/vimrc
parentMerge branch 'release/v1.51.0' into develop (diff)
downloaddotfiles-192af8c7f52d0b9ab3660f83fd5605653a979bef.tar.gz
dotfiles-192af8c7f52d0b9ab3660f83fd5605653a979bef.zip
Add vertical_region.vim plugin
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index be9c63ab..2531327d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -318,6 +318,16 @@ nnoremap <Bslash>. :<C-U>lmake!<CR>
nnoremap <Bslash><lt> :<C-U>'[,']<lt><CR>
nnoremap <Bslash>> :<C-U>'[,']><CR>
+" \{ and \} move to lines with non-space chars before current column
+nmap <Bslash>{ <Plug>(VerticalRegionUpNormal)
+nmap <Bslash>} <Plug>(VerticalRegionDownNormal)
+omap <Bslash>{ <Plug>(VerticalRegionUpOperator)
+omap <Bslash>} <Plug>(VerticalRegionDownOperator)
+if exists(':xmap')
+ xmap <Bslash>{ <Plug>(VerticalRegionUpVisual)
+ xmap <Bslash>} <Plug>(VerticalRegionDownVisual)
+endif
+
" \/ types :vimgrep for me ready to enter a search pattern
nnoremap <Bslash>/ :<C-U>vimgrep /\c/ **<S-Left><S-Left><Right>
" \? types :helpgrep for me ready to enter a search pattern