From 332513de5851d9f629938608d40b5c0308620fc0 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 31 Aug 2015 23:09:55 +0900 Subject: [PATCH] [Commands] List user-defined commands first --- plugin/fzf.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fzf.vim b/plugin/fzf.vim index daad08c..6b94f6a 100644 --- a/plugin/fzf.vim +++ b/plugin/fzf.vim @@ -465,7 +465,7 @@ function! s:commands(bang) redir END let list = split(cout, "\n") call s:fzf({ - \ 'source': extend(extend(list[0:0], s:excmds()), map(list[1:], 's:format_cmd(v:val)')), + \ 'source': extend(extend(list[0:0], map(list[1:], 's:format_cmd(v:val)')), s:excmds()), \ 'sink': function('s:command_sink'), \ 'options': '--ansi --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2 -d'.s:nbs}, a:bang) endfunction