[vim] Neovim compatibility (#137)

Use terminal emulator of Neovim to open fzf
This commit is contained in:
Junegunn Choi
2015-04-10 23:23:47 +09:00
parent 68503d32df
commit 622e69ff54
2 changed files with 97 additions and 24 deletions

View File

@@ -317,11 +317,16 @@ of the selected items.
| `source` | list | Vim list as input to fzf |
| `sink` | string | Vim command to handle the selected item (e.g. `e`, `tabe`) |
| `sink` | funcref | Reference to function to process each selected item |
| `sink*` | funcref | Similar to `sink`, but takes the list of output lines at once |
| `options` | string | Options to fzf |
| `dir` | string | Working directory |
| `up`/`down`/`left`/`right` | number/string | Use tmux pane with the given size (e.g. `20`, `50%`) |
| `window` (*Neovim only*) | string | Command to open fzf window (e.g. `vertical aboveleft 30new`) |
| `launcher` | string | External terminal emulator to start fzf with (Only used in GVim) |
*However on Neovim `fzf#run` is asynchronous and does not return values so you
should use `sink` or `sink+` to process the output from fzf.*
##### Examples
If `sink` option is not given, `fzf#run` will simply return the list.