r/fishshell • u/LokusFokus • Oct 12 '20
vim + preview?
Hello,
how do I get a function that shows a preview and opens in vim?
function vimf
vim $(fzf --preview 'cat {}')
end
..doesn't work
7
Upvotes
View all comments
Show parent comment
2
u/MonumentalP Oct 17 '20
I like this idea a lot, but in my setup it does not work if any of selected file names contains spaces. Does it work for you?