Skip to content

Instantly share code, notes, and snippets.

@georgefs
Created April 1, 2013 08:43
Show Gist options
  • Save georgefs/5283880 to your computer and use it in GitHub Desktop.
Save georgefs/5283880 to your computer and use it in GitHub Desktop.
ubuntu 系統剪貼簿gtk
""ubuntu virtual mode ctrl+c 複製到系統剪貼簿 gtk only
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment