diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-12-02 21:07:23 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-12-02 21:07:23 +0900 |
| commit | d9a51030eaeb601edb0a7d9673655a216045046d (patch) | |
| tree | 5b6bab925477ef4ec401bf7b8764502a7f374034 /plugin/fzf.vim | |
| parent | 67026718c1d3d980f5cbe4a6caa137ce169768f9 (diff) | |
| download | fzf-d9a51030eaeb601edb0a7d9673655a216045046d.tar.gz | |
[vim] Display relative path in prompt
Diffstat (limited to 'plugin/fzf.vim')
| -rw-r--r-- | plugin/fzf.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 96e30c44..49dc1924 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -588,7 +588,7 @@ function! s:cmd(bang, ...) abort let opts.dir = substitute(substitute(remove(args, -1), '\\\(["'']\)', '\1', 'g'), '/*$', '/', '') let opts.options .= ' --prompt '.shellescape(opts.dir) else - let opts.options .= ' --prompt '.shellescape(pathshorten(getcwd()).'/') + let opts.options .= ' --prompt '.shellescape(pathshorten(fnamemodify(getcwd(), ':~:.')).'/') endif let opts.options .= ' '.join(args) call fzf#run(fzf#wrap('FZF', opts, a:bang)) |
