How to get clipboard as input file name to Vim on bash?
1
vote
1
answer
311
views
I install
xclip
to access system clipboard, my setting and some operations as below:
➜ ~ cat .zshrc | grep xclip
alias c="xclip -selection c"
alias v="xclip -selection c -o"
➜ ~ which dict | c
➜ ~ v
/usr/bin/dict
➜ ~ sudo vim ??
/usr/bin/dict
is a python script. And what I want to know is what can substitute ??
on my last command can use vim open file /usr/bin/dict
?
Asked by roachsinai
(326 rep)
Jan 8, 2019, 08:20 AM
Last activity: Jan 8, 2019, 08:33 AM
Last activity: Jan 8, 2019, 08:33 AM