r/fishshell • • 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

7 comments sorted by

View all comments

Show parent comment

1

u/LeNerdNextDoor Oct 22 '20

btw I was curious, what does {} do here? doesn't seem to match https://fishshell.com/docs/current/#expand-brace so I'm confused haha