From 42e427e56885c066a1062c1bd0c9a3d6d805f5fc Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 30 Jul 2015 13:33:40 +0900 Subject: [PATCH] Updated Examples (vim) (markdown) --- Examples-(vim).md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Examples-(vim).md b/Examples-(vim).md index f548887..b11fc75 100644 --- a/Examples-(vim).md +++ b/Examples-(vim).md @@ -96,16 +96,9 @@ command! -bar FZFTags if !empty(tagfiles()) | call fzf#run({ \ }) | else | echo 'Preparing tags' | call system('ctags -R') | FZFTag | endif ``` -Jump to tags only in current file: +### Jumps to tags in the current buffer -```vim -command! FZFTagFile if !empty(tagfiles()) | call fzf#run({ -\ 'source': "cat " . tagfiles()[0] . ' | grep "' . expand('%:@') . '"' . " | sed -e '/^\\!/d;s/\t.*//' ". ' | uniq', -\ 'sink': 'tag', -\ 'options': '+m', -\ 'left': 60, -\ }) | else | echo 'No tags' | endif -``` +https://github.com/junegunn/fzf/issues/243#issuecomment-123719357 ### Search lines in all open vim buffers