feat: copy file:lineno to clipboard
This commit is contained in:
parent
c099538626
commit
a8e3aa68ae
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user