Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature proposition: Automatic pasting #101

Open
TitouanT opened this issue Dec 2, 2018 · 5 comments
Open

feature proposition: Automatic pasting #101

TitouanT opened this issue Dec 2, 2018 · 5 comments

Comments

@TitouanT
Copy link

TitouanT commented Dec 2, 2018

I added this feature by appending this line to bin/run:

xdotool key ctrl+v

It does add a dependency but xdotool supports both linux and OSX.

@OrionRandD
Copy link

I do not have that line
xdotool key ctrl+v
in my bin/run
even after updating vim-anywhere
I have inserted that by hand and it
does not work.
So that I have to close gvim and issue
Ctrl-v to paste the contents :(

@TitouanT
Copy link
Author

@OrionRandD do you have xdotool installed ?
If you use linux you can place it after this line:

cat $TMPFILE | xclip -selection clipboard

@OrionRandD
Copy link

OrionRandD commented Aug 22, 2019

@TitouanT
Thx a lot.
Worked beautifully
But, I would like it to in the
New versions of vim-anywhere
So that, it would be not necessary to
tweak by hand
:)

@TitouanT
Copy link
Author

TitouanT commented Aug 23, 2019

I am glad it worked :)

As for adding it into the repo, I am not sure anymore.
I don't use it anymore because Ctrl+v doesn't worked by default into terminals and I am often don't want to paste immediately after vim exits.
At most, it could be an option.

You could do a fork with the change you made and use that fork on your machines, this way no need to tweak it each time you make a new install.

note:
now I use two commands to do that stdvim | xclip -rmlastnl -selection clipboard (same as vim-anywhere) and xclip -o -selection primary | stdvim | xclip -rmlastnl -selection clipboard (which populate the file with the current selection) where stdvim is a script that I wrote to use vim in pipes.

@OrionRandD
Copy link

OrionRandD commented Aug 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants