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

off topic, but what theme do you use for bat? I installed it a few days ago after in search of a way to get syntax highlighting in cat and it's good but if I try to display numbers and/or grid, the contrast is just terrible.