Is it possible to copy the path of all currently selected files/folders to the clipboard by running a command?
Currently I'm using
nnoremap yf :!echo %c:p | xclip -selection clipboard %i<cr>
but this gives me only the path of one single item (the current one).
If you replace %c with %f
you'll get all files in the selection, but they will be on the same line. You probably want something like this
nnoremap yf :!printf "\n%%s" %f:p | tail -c+2 | xclip -selection clipboard %i<cr>
which will put each path on a separate line.
Thank you a lot, it works!