From bbda33b402d92d43c75827bd54ee1932cf03a7b6 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 15 Apr 2018 00:48:33 +0200 Subject: [PATCH] buffer_tags: sort tags This is nice for (ab)using :BTags to "browse" functions in a source file. --- autoload/fzf/vim.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 3168418..8804035 100644 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -745,8 +745,8 @@ function! fzf#vim#buffer_tags(query, ...) let escaped = fzf#shellescape(expand('%')) let null = s:is_win ? 'nul' : '/dev/null' let tag_cmds = (len(args) > 1 && type(args[0]) != type({})) ? remove(args, 0) : [ - \ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s 2> %s', &filetype, escaped, null), - \ printf('ctags -f - --sort=no --excmd=number %s 2> %s', escaped, null)] + \ printf('ctags -f - --sort=yes --excmd=number --language-force=%s %s 2> %s', &filetype, escaped, null), + \ printf('ctags -f - --sort=yes --excmd=number %s 2> %s', escaped, null)] if type(tag_cmds) != type([]) let tag_cmds = [tag_cmds] endif