From a8e3aa68aed28c71b78985d2924bd922f025cac4 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 16 May 2022 09:47:50 +0800 Subject: [PATCH] feat: copy file:lineno to clipboard --- cli/vim/init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/vim/init.vim b/cli/vim/init.vim index b2fd8cd..e4cb7d6 100644 --- a/cli/vim/init.vim +++ b/cli/vim/init.vim @@ -102,7 +102,7 @@ endfunction function! YankFileLineNo() let yl=expand("%") . ':' . line(".") call system('tmux set-buffer "'.yl.'"') - "let @+=yl + call system(g:xcopy, yl) endfunction xnoremap y :call XCopy()