Fix invalid layout example

This commit is contained in:
Junegunn Choi 2019-06-08 23:29:04 +09:00
parent 984304568d
commit 951746297e
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
2 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ let g:fzf_layout = { 'down': '~40%' }
" You can set up fzf window using a Vim command (Neovim or latest Vim 8 required) " You can set up fzf window using a Vim command (Neovim or latest Vim 8 required)
let g:fzf_layout = { 'window': 'enew' } let g:fzf_layout = { 'window': 'enew' }
let g:fzf_layout = { 'window': '-tabnew' } let g:fzf_layout = { 'window': '-tabnew' }
let g:fzf_layout = { 'window': '10split enew' } let g:fzf_layout = { 'window': '10new' }
" Customize fzf colors to match your color scheme " Customize fzf colors to match your color scheme
let g:fzf_colors = let g:fzf_colors =
@ -139,7 +139,7 @@ Pass a layout option if you don't want fzf window to take up the entire screen.
```vim ```vim
" up / down / left / right / window 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'}) call fzf#run({'source': 'git ls-files', 'sink': 'e', 'window': '30vnew'})
``` ```
`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

View File

@ -97,7 +97,7 @@ Examples~
" You can set up fzf window using a Vim command (Neovim or latest Vim 8 required) " You can set up fzf window using a Vim command (Neovim or latest Vim 8 required)
let g:fzf_layout = { 'window': 'enew' } let g:fzf_layout = { 'window': 'enew' }
let g:fzf_layout = { 'window': '-tabnew' } let g:fzf_layout = { 'window': '-tabnew' }
let g:fzf_layout = { 'window': '10split enew' } let g:fzf_layout = { 'window': '10new' }
" Customize fzf colors to match your color scheme " Customize fzf colors to match your color scheme
let g:fzf_colors = let g:fzf_colors =
@ -156,7 +156,7 @@ screen.
> >
" up / down / left / right / window 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'}) call fzf#run({'source': 'git ls-files', 'sink': 'e', 'window': '30vnew'})
< <
`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
array as the source. In the following example, we use the names of the open array as the source. In the following example, we use the names of the open