From cca80ae6aa51076cd2c4955714f3c01a4079c867 Mon Sep 17 00:00:00 2001 From: atn34 Date: Sun, 19 Oct 2014 02:09:30 -0700 Subject: [PATCH] don't block vim while listing tags --- Examples.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Examples.md b/Examples.md index e704704..80c50ff 100644 --- a/Examples.md +++ b/Examples.md @@ -304,14 +304,15 @@ Jump to tags --- ```vimL -function! TagList() - return map(taglist('.*'), 'v:val["name"]') +function! TagCommand() + return substitute('awk _!/^!/ { print \$1 }_ ', '_', "'", 'g') + \ . join(tagfiles(), ' ') endfunction command! FZFTag call fzf#run({ -\ 'source' : TagList(), +\ 'source' : TagCommand(), \ 'sink' : 'tag', -\ }) +\ }) ``` Fuzzy cmdline completion