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>
@georgefs
Copy link
Author

這段就指是很簡單的加入跳脫..
再塞到python gtk 的剪貼簿裡面0..0

如果gui 是gtk 應該就可以用了- -"

@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