Created
September 14, 2013 16:12
-
-
Save georgefs/6563230 to your computer and use it in GitHub Desktop.
ubuntu vim copy
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
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> |
忘了說 就是你用v 選好後.. 按ctrl+c 就會複製到系統剪貼簿裡面了..
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你帥帥喔