mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Updated Examples (vim) (markdown)
@@ -38,12 +38,12 @@ the source. This will list the files managed by git.
|
|||||||
call fzf#run({'source': 'git ls-files', 'sink': 'e'})
|
call fzf#run({'source': 'git ls-files', 'sink': 'e'})
|
||||||
```
|
```
|
||||||
|
|
||||||
If you use tmux, or use Neovim, you can open fzf in a tmux pane or a split
|
Pass a layout option if you don't want fzf window to take up the entire screen.
|
||||||
window so that it doesn't take up the entire screen.
|
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
" up / down / left / right are allowed
|
" up / down / left / right / window are allowed
|
||||||
call fzf#run({'source': 'git ls-files', 'sink': 'e', 'right': '40%'})
|
call fzf#run({'source': 'git ls-files', 'sink': 'e', 'right': '40%'})
|
||||||
|
call fzf#run({'source': 'git ls-files', 'sink': 'e', 'window': '30vsplit'})
|
||||||
```
|
```
|
||||||
|
|
||||||
`source` doesn't have to be an external shell command, you can pass a Vim
|
`source` doesn't have to be an external shell command, you can pass a Vim
|
||||||
|
|||||||
Reference in New Issue
Block a user