Skip to content

Instantly share code, notes, and snippets.

@AndrewRadev
Last active November 5, 2024 09:26
Show Gist options
  • Save AndrewRadev/6129606 to your computer and use it in GitHub Desktop.
Save AndrewRadev/6129606 to your computer and use it in GitHub Desktop.
xnoremap <C-c> :<c-u>call <SID>Xsel()<cr>
function! s:Xsel()
normal! gv"zy
call system('xsel -i', @z)
echo
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment