1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:20:04 +08:00

Add desc for paste from clipboard

close #2317

It is hard to change desc after key begining has been definded.
This commit is contained in:
Shidong Wang 2018-12-23 22:21:15 +08:00
parent df4810fa80
commit 9daf72522a

View File

@ -154,14 +154,18 @@ function! SpaceVim#default#keyBindings() abort
xnoremap <Leader>y "+y
xnoremap <Leader>d "+d
nnoremap <Leader>p "+p
let g:_spacevim_mappings.p = ['normal! "+p', 'paste after here']
nnoremap <Leader>P "+P
let g:_spacevim_mappings.P = ['normal! "+P', 'paste before here']
xnoremap <Leader>p "+p
xnoremap <Leader>P "+P
else
xnoremap <Leader>y "*y
xnoremap <Leader>d "*d
nnoremap <Leader>p "*p
let g:_spacevim_mappings.p = ['normal! "*p', 'paste after here']
nnoremap <Leader>P "*P
let g:_spacevim_mappings.P = ['normal! "*P', 'paste before here']
xnoremap <Leader>p "*p
xnoremap <Leader>P "*P
endif