osx - Copy lines to os x clipboard from vim on remote console -


i'm using heroku, , i've logged gotten access bash using heroku run bash. found out possible install vim on heroku shell script:

#!/usr/bin/env bash curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz mkdir vim && tar xzvf vim.tar.gz -c vim export path=$path:/app/vim/bin 

i wanting take text yank vim on heroku , paste other editors.

to clear, trying fix: yank text in file vim buffer (using yg instance,) want use i've yanked pasting application sublime text i'm running locally. i've tried "*yg. didn't work either.

i have vague idea why isn't working (the buffer i'm copying accessible on server,) isn't there someway besides selecting using terminal?

yes, idea right: because vim runs on machine has no access local clipboard or local command pbcopy or pbpaste. also, because use mac os x , (i assume) iterm.app or terminal.app, "x forwarding" of no here (you don't use x).

so, have 2 options:

  • select want copy mouse , use terminal emulator/system's "copy" feature.

  • set complicated system use remote command scp yanked text local machine it's piped pbcopy. i've seen things in past.

but, why don't editing remotely? or use vcs?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -