Skip to content

Commit 5812bbd

Browse files
authored
adaption of some maps
1 parent 3448748 commit 5812bbd

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

plugin/yankring.vim

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,25 +2365,25 @@ function! s:YRWindowOpen(results)
23652365
" other buffers.
23662366
mapclear <buffer>
23672367
" Create a mapping to act upon the yankring
2368-
nnoremap <buffer> <silent> <2-LeftMouse> :call <SID>YRWindowActionN('p' , 'n')<CR>
2369-
nnoremap <buffer> <silent> <CR> :call <SID>YRWindowActionN('p' , 'n')<CR>
2370-
xnoremap <buffer> <silent> <CR> :call <SID>YRWindowAction ('p' , 'v')<CR>
2371-
nnoremap <buffer> <silent> p :call <SID>YRWindowActionN('p' , 'n')<CR>
2372-
nnoremap <buffer> <silent> [p :call <SID>YRWindowActionN('[p' , 'n')<CR>
2373-
nnoremap <buffer> <silent> ]p :call <SID>YRWindowActionN(']p' , 'n')<CR>
2374-
xnoremap <buffer> <silent> p :call <SID>YRWindowAction ('p' , 'v')<CR>
2375-
xnoremap <buffer> <silent> [p :call <SID>YRWindowAction ('[p' , 'v')<CR>
2376-
xnoremap <buffer> <silent> ]p :call <SID>YRWindowAction (']p' , 'v')<CR>
2377-
nnoremap <buffer> <silent> P :call <SID>YRWindowActionN('P' , 'n')<CR>
2378-
nnoremap <buffer> <silent> [P :call <SID>YRWindowActionN('[P' , 'n')<CR>
2379-
nnoremap <buffer> <silent> ]P :call <SID>YRWindowActionN(']P' , 'n')<CR>
2380-
xnoremap <buffer> <silent> P :call <SID>YRWindowAction ('P' , 'v')<CR>
2381-
xnoremap <buffer> <silent> [P :call <SID>YRWindowAction ('[P' , 'v')<CR>
2382-
xnoremap <buffer> <silent> ]P :call <SID>YRWindowAction (']P' , 'v')<CR>
2383-
nnoremap <buffer> <silent> gp :call <SID>YRWindowActionN('gp' , 'n')<CR>
2384-
xnoremap <buffer> <silent> gp :call <SID>YRWindowAction ('gp' , 'v')<CR>
2385-
nnoremap <buffer> <silent> gP :call <SID>YRWindowActionN('gP' , 'n')<CR>
2386-
xnoremap <buffer> <silent> gP :call <SID>YRWindowAction ('gP' , 'v')<CR>
2368+
nnoremap <buffer> <silent> <2-LeftMouse> :call <SID>YRWindowActionN('p' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2369+
nnoremap <buffer> <silent> <CR> :call <SID>YRWindowActionN('p' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2370+
xnoremap <buffer> <silent> <CR> :call <SID>YRWindowAction ('p' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2371+
nnoremap <buffer> <silent> p :call <SID>YRWindowActionN('p' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2372+
nnoremap <buffer> <silent> [p :call <SID>YRWindowActionN('[p' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2373+
nnoremap <buffer> <silent> ]p :call <SID>YRWindowActionN(']p' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2374+
xnoremap <buffer> <silent> p :call <SID>YRWindowAction ('p' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2375+
xnoremap <buffer> <silent> [p :call <SID>YRWindowAction ('[p' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2376+
xnoremap <buffer> <silent> ]p :call <SID>YRWindowAction (']p' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2377+
nnoremap <buffer> <silent> P :call <SID>YRWindowActionN('P' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2378+
nnoremap <buffer> <silent> [P :call <SID>YRWindowActionN('[P' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2379+
nnoremap <buffer> <silent> ]P :call <SID>YRWindowActionN(']P' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2380+
xnoremap <buffer> <silent> P :call <SID>YRWindowAction ('P' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2381+
xnoremap <buffer> <silent> [P :call <SID>YRWindowAction ('[P' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2382+
xnoremap <buffer> <silent> ]P :call <SID>YRWindowAction (']P' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2383+
nnoremap <buffer> <silent> gp :call <SID>YRWindowActionN('gp' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2384+
xnoremap <buffer> <silent> gp :call <SID>YRWindowAction ('gp' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2385+
nnoremap <buffer> <silent> gP :call <SID>YRWindowActionN('gP' , 'n')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
2386+
xnoremap <buffer> <silent> gP :call <SID>YRWindowAction ('gP' , 'v')<CR><c-w>p:YRShow<cr>:YRShow<cr>:YRShow<cr>
23872387
nnoremap <buffer> <silent> d :call <SID>YRWindowActionN('d' , 'n')<CR>
23882388
xnoremap <buffer> <silent> d :call <SID>YRWindowAction ('d' , 'v')<CR>
23892389
xnoremap <buffer> <silent> r :call <SID>YRWindowAction ('r' , 'v')<CR>
@@ -2395,15 +2395,15 @@ function! s:YRWindowOpen(results)
23952395
nnoremap <buffer> <silent> u :call <SID>YRWindowAction ('u' , 'n')<CR>
23962396
nnoremap <buffer> <silent> q :call <SID>YRWindowAction ('q' , 'n')<CR>
23972397
nnoremap <buffer> <silent> R :call <SID>YRWindowAction ('R' , 'n')<CR>
2398-
nnoremap <buffer> <silent> 1 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(1)<CR>
2399-
nnoremap <buffer> <silent> 2 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(2)<CR>
2400-
nnoremap <buffer> <silent> 3 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(3)<CR>
2401-
nnoremap <buffer> <silent> 4 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(4)<CR>
2402-
nnoremap <buffer> <silent> 5 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(5)<CR>
2403-
nnoremap <buffer> <silent> 6 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(6)<CR>
2404-
nnoremap <buffer> <silent> 7 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(7)<CR>
2405-
nnoremap <buffer> <silent> 8 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(8)<CR>
2406-
nnoremap <buffer> <silent> 9 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(9)<CR>
2398+
nnoremap <buffer> <silent> 1 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(1)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2399+
nnoremap <buffer> <silent> 2 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(2)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2400+
nnoremap <buffer> <silent> 3 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(3)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2401+
nnoremap <buffer> <silent> 4 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(4)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2402+
nnoremap <buffer> <silent> 5 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(5)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2403+
nnoremap <buffer> <silent> 6 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(6)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2404+
nnoremap <buffer> <silent> 7 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(7)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2405+
nnoremap <buffer> <silent> 8 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(8)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
2406+
nnoremap <buffer> <silent> 9 :call <SID>YRWindowAction ('q' ,'n')<CR>:call <SID>YRGetElem(9)<CR>:YRShow<cr>:YRShow<cr>:YRShow<cr>
24072407
nnoremap <buffer> <silent> <space> \|:silent exec 'vertical resize '.
24082408
\ (
24092409
\ g:yankring_window_use_horiz!=1 && winwidth('.') > g:yankring_window_width

0 commit comments

Comments
 (0)