summaryrefslogtreecommitdiff
path: root/plugin/maps.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/maps.vim')
-rw-r--r--plugin/maps.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugin/maps.vim b/plugin/maps.vim
index e471542..d252948 100644
--- a/plugin/maps.vim
+++ b/plugin/maps.vim
@@ -29,6 +29,16 @@ cmap w!! %!sudo -S tee > /dev/null %
29" visual 29" visual
30vnoremap > >gv 30vnoremap > >gv
31vnoremap < <gv 31vnoremap < <gv
32vnoremap <silent> * :<C-U>
33 \let old_reg=getreg('"')<Bar>let old_regtype=getregtype('"')<CR>
34 \gvy/<C-R>=&ic?'\c':'\C'<CR><C-R><C-R>=substitute(
35 \escape(@", '/\.*$^~['), '\_s\+', '\\_s\\+', 'g')<CR><CR>
36 \gVzv:call setreg('"', old_reg, old_regtype)<CR>
37vnoremap <silent> # :<C-U>
38 \let old_reg=getreg('"')<Bar>let old_regtype=getregtype('"')<CR>
39 \gvy?<C-R>=&ic?'\c':'\C'<CR><C-R><C-R>=substitute(
40 \escape(@", '?\.*$^~['), '\_s\+', '\\_s\\+', 'g')<CR><CR>
41 \gVzv:call setreg('"', old_reg, old_regtype)<CR>
32 42
33" operator-pending 43" operator-pending
34onoremap ax a` 44onoremap ax a`