Implement --no-sort options with some fixes

This commit is contained in:
Junegunn Choi
2013-10-24 18:56:33 +09:00
parent 9efb663f38
commit abd07ffb9e
3 changed files with 122 additions and 73 deletions

View File

@@ -23,11 +23,11 @@
let s:exec = expand('<sfile>: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