summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-09-19 10:57:34 +0100
committerAkshay <[email protected]>2021-09-19 10:57:34 +0100
commit456232000cc2a5f20b5eb87f268ffea2e3667ac6 (patch)
tree6d183309a3e5f51e74fd963d9e1881c5f12b6bc8 /plugin
parentc45237c7394152dc63200f7eb71e816b30600d82 (diff)
cool new search mapping
Diffstat (limited to 'plugin')
-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`