mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
feat(clipboard): add log for clipboard
This commit is contained in:
parent
3bacbcd4ef
commit
664c6d7259
6
bundle/vim-clipboard/autoload/clipboard.vim
vendored
6
bundle/vim-clipboard/autoload/clipboard.vim
vendored
@ -6,7 +6,10 @@
|
|||||||
" License: GPLv3
|
" License: GPLv3
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
|
||||||
|
let s:LOGGER =SpaceVim#logger#derive('FlyGrep')
|
||||||
|
|
||||||
" This script is based on kamilkrz (Kamil Krześ)'s idea about using clipboard.
|
" This script is based on kamilkrz (Kamil Krześ)'s idea about using clipboard.
|
||||||
|
|
||||||
function! s:set_command() abort
|
function! s:set_command() abort
|
||||||
let yank = ''
|
let yank = ''
|
||||||
let paste = ''
|
let paste = ''
|
||||||
@ -91,5 +94,6 @@ function! s:get_selection_text()
|
|||||||
endif
|
endif
|
||||||
return join(lines, "\n") . lastchar . (visualmode() ==# 'V' ? "\n" : '')
|
return join(lines, "\n") . lastchar . (visualmode() ==# 'V' ? "\n" : '')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
let [s:yank_cmd, s:paste_cmd] = s:set_command()
|
let [s:yank_cmd, s:paste_cmd] = s:set_command()
|
||||||
|
call s:LOGGER.info('yank_cmd is:' . string(s:yank_cmd))
|
||||||
|
call s:LOGGER.info('paste_cmd is:' . string(s:paste_cmd))
|
||||||
|
Loading…
Reference in New Issue
Block a user