From abd07ffb9e4694ca395586e964660fef348c87c7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 24 Oct 2013 18:56:33 +0900 Subject: Implement --no-sort options with some fixes --- plugin/fzf.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugin') diff --git a/plugin/fzf.vim b/plugin/fzf.vim index 03571e8e..849dee70 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -23,11 +23,11 @@ let s:exec = expand(':h:h').'/fzf' -function! s:fzf(cmd) +function! s:fzf(args) try let tf = tempname() - let prefix = empty(a:cmd) ? '' : a:cmd.' | ' - execute "silent !".prefix."/usr/bin/env bash ".s:exec." > ".tf + let prefix = exists('g:fzf_command') ? g:fzf_command.'|' : '' + execute "silent !".prefix."/usr/bin/env bash ".s:exec." ".a:args." > ".tf if !v:shell_error execute 'silent e '.join(readfile(tf), '') endif -- cgit v1.2.3