Skip to content

Instantly share code, notes, and snippets.

@georgefs
Created September 14, 2013 16:12
Show Gist options
  • Save georgefs/6563230 to your computer and use it in GitHub Desktop.
Save georgefs/6563230 to your computer and use it in GitHub Desktop.
ubuntu vim copy
python import gtk
python import vim
vmap <silent> <C-C> y:let @0=substitute(@0,"\\","\\\\\\","gi")<CR>:let @0=substitute(@0,"\'","\\\\'","gi")<CR>:python gtk.clipboard_get().set_text('''<C-R>0''')<CR>:python gtk.clipboard_get().store()<CR>
@littleq0903
Copy link

你帥帥喔

@georgefs
Copy link
Author

忘了說 就是你用v 選好後.. 按ctrl+c 就會複製到系統剪貼簿裡面了..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment