diff options
author | Akshay <[email protected]> | 2021-09-19 10:57:34 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-09-19 10:57:34 +0100 |
commit | 456232000cc2a5f20b5eb87f268ffea2e3667ac6 (patch) | |
tree | 6d183309a3e5f51e74fd963d9e1881c5f12b6bc8 /plugin | |
parent | c45237c7394152dc63200f7eb71e816b30600d82 (diff) |
cool new search mapping
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/maps.vim | 10 |
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 |
30 | vnoremap > >gv | 30 | vnoremap > >gv |
31 | vnoremap < <gv | 31 | vnoremap < <gv |
32 | vnoremap <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> | ||
37 | vnoremap <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 |
34 | onoremap ax a` | 44 | onoremap ax a` |