m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

Updated Examples (vim) (markdown)

Junegunn Choi
2015-07-30 13:33:40 +09:00
parent 3e6980e1ab
commit 42e427e568

@@ -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