feat: copy file:lineno to clipboard

This commit is contained in:
Klesh Wong 2022-05-16 09:47:50 +08:00
parent c099538626
commit a8e3aa68ae

View File

@ -102,7 +102,7 @@ endfunction
function! YankFileLineNo() function! YankFileLineNo()
let yl=expand("%") . ':' . line(".") let yl=expand("%") . ':' . line(".")
call system('tmux set-buffer "'.yl.'"') call system('tmux set-buffer "'.yl.'"')
"let @+=yl call system(g:xcopy, yl)
endfunction endfunction
xnoremap <leader>y <esc>:call XCopy()<CR> xnoremap <leader>y <esc>:call XCopy()<CR>