mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
Updated Examples (vim) (markdown)
@@ -77,6 +77,17 @@ command! -bar FZFTags if !empty(tagfiles()) | call fzf#run({
|
|||||||
\ }) | else | echo 'Preparing tags' | call system('ctags -R') | FZFTag | endif
|
\ }) | else | echo 'Preparing tags' | call system('ctags -R') | FZFTag | endif
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Jump to tags only in current file:
|
||||||
|
|
||||||
|
```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
|
||||||
|
```
|
||||||
|
|
||||||
### Search lines in all open vim buffers
|
### Search lines in all open vim buffers
|
||||||
|
|
||||||
```vimL
|
```vimL
|
||||||
|
|||||||
Reference in New Issue
Block a user