aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-10 01:33:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-10 01:33:49 +1200
commitba8ceb1d7ef14d82292636e018881a019ce5f474 (patch)
tree83f5841213950b0ca784c9d9c5f010f8b6e8a249 /vim/vimrc
parentMerge branch 'release/v1.51.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-ba8ceb1d7ef14d82292636e018881a019ce5f474.tar.gz
dotfiles-ba8ceb1d7ef14d82292636e018881a019ce5f474.zip
Merge branch 'release/v1.52.0'v1.52.0
* release/v1.52.0: Bump VERSION Update vertical_region.vim with hotfix Spin out vertical_region.vim into submodule Use autoloading for vertical_region.vim 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