Created
April 1, 2013 08:43
-
-
Save georgefs/5283880 to your computer and use it in GitHub Desktop.
ubuntu 系統剪貼簿gtk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""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