It seems like versions of this question have been asked here before, but I haven't been able to glean from them the exact response to what I am looking for.
Say I open up a .txt
file via vim
on my mac machine and I then want to copy a line from that file to be used in another .txt
file or in a google search
or in terminal
during an ssh
session. What would be the simplest way to do this?
Thanks,
EDIT
Found a potential duplicate: Vim: copy selection to OS X clipboard. But I am open to improvements! :)