Often I am in some 'general' directory when I open files, such as ~
or Desktop
. FZF
by default opens the user's pwd
, for example, if I have:
Desktop $ vim ~/.vim/vimrc
And I do:
:FZF
It will search in Desktop
by default. How can I pass a parameter equivalent to:
:FZF dir(current_file)
Or:
:FZF expand('%:p:h')