[Files] Display relative path in prompt

This commit is contained in:
Junegunn Choi 2016-12-02 21:07:37 +09:00
parent eb1f9b02f7
commit 59eb2b19ac
No known key found for this signature in database
GPG key ID: 254BC280FEF9C627

View file

@ -244,7 +244,7 @@ function! fzf#vim#files(dir, ...)
let args.dir = dir
let args.options .= ' --prompt '.shellescape(dir)
else
let args.options .= ' --prompt '.shellescape(pathshorten(getcwd())).'/'
let args.options .= ' --prompt '.shellescape(pathshorten(fnamemodify(getcwd(), ':~:.')).'/')
endif
return s:fzf('files', args, a:000)