Skip to content
Myr

[vim] Display relative path in prompt

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 6702671 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:plugin/fzf.vim+1 added-1 removed
586 unmodified lines
587 if len(args) && isdirectory(expand(args[-1]))588 let opts.dir = substitute(substitute(remove(args, -1), '\\\(["'']\)', '\1', 'g'), '/*$', '/', '')589 let opts.options .= ' --prompt '.shellescape(opts.dir)590 else591 let opts.options .= ' --prompt '.shellescape(pathshorten(getcwd()).'/')591 let opts.options .= ' --prompt '.shellescape(pathshorten(fnamemodify(getcwd(), ':~:.')).'/')592 endif593 let opts.options .= ' '.join(args)594 call fzf#run(fzf#wrap('FZF', opts, a:bang))595endfunction
5 unmodified lines