Skip to content

Instantly share code, notes, and snippets.

@0xItx
Created August 16, 2015 09:44
Show Gist options
  • Save 0xItx/e131aff997a4875d136f to your computer and use it in GitHub Desktop.
Save 0xItx/e131aff997a4875d136f to your computer and use it in GitHub Desktop.
Prevent Vi from clearing X clipboard on exit
au VimLeave * call system('xclip -in -selection clipboard', getreg('+'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment