aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc16
1 files changed, 10 insertions, 6 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 122a108d..f290b144 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -393,18 +393,22 @@ onoremap <Leader>_ :<C-U>normal! `[v`]<CR>
onoremap <Leader>% :<C-U>normal! 1GVG<CR>
" \{ and \} move to lines with non-space chars before current column
-nmap <Leader>{ <Plug>(VerticalRegionUpNormal)
-nmap <Leader>} <Plug>(VerticalRegionDownNormal)
-omap <Leader>{ <Plug>(VerticalRegionUpOperator)
-omap <Leader>} <Plug>(VerticalRegionDownOperator)
-xmap <Leader>{ <Plug>(VerticalRegionUpVisual)
-xmap <Leader>} <Plug>(VerticalRegionDownVisual)
+nmap <Leader>{ <Plug>(VerticalRegionUp)
+nmap <Leader>} <Plug>(VerticalRegionDown)
+omap <Leader>{ <Plug>(VerticalRegionUp)
+omap <Leader>} <Plug>(VerticalRegionDown)
+xmap <Leader>{ <Plug>(VerticalRegionUp)
+xmap <Leader>} <Plug>(VerticalRegionDown)
" \/ types :vimgrep for me ready to enter a search pattern
nnoremap <Leader>/ :<C-U>vimgrep /\c/j **<S-Left><S-Left><Right>
" \? types :helpgrep for me ready to enter a search pattern
nnoremap <Leader>? :<C-U>helpgrep \c<S-Left>
+" \\ escapes regex metacharacters
+nmap <Leader>\ <Plug>(RegexEscape)
+xmap <Leader>\ <Plug>(RegexEscape)
+
" \DEL deletes the current buffer
nnoremap <Leader><Delete> :bdelete<CR>
" \INS edits a new buffer