mirror of
https://github.com/junegunn/fzf.git
synced 2024-09-11 14:35:26 +03:00
Update README-VIM
This commit is contained in:
parent
85644aa3fb
commit
1dd256a68a
@ -273,7 +273,7 @@ The latest versions of Vim and Neovim include builtin terminal emulator
|
|||||||
|
|
||||||
- On Neovim
|
- On Neovim
|
||||||
- On GVim
|
- On GVim
|
||||||
- On Terminal Vim with the non-default layout
|
- On Terminal Vim with a non-default layout
|
||||||
- `call fzf#run({'left': '30%'})` or `let g:fzf_layout = {'left': '30%'}`
|
- `call fzf#run({'left': '30%'})` or `let g:fzf_layout = {'left': '30%'}`
|
||||||
|
|
||||||
#### Starting fzf in Neovim floating window
|
#### Starting fzf in Neovim floating window
|
||||||
@ -303,13 +303,19 @@ endif
|
|||||||
|
|
||||||
#### Hide statusline
|
#### Hide statusline
|
||||||
|
|
||||||
When fzf starts in a terminal buffer, you may want to hide the statusline of
|
When fzf starts in a terminal buffer, the file type of the buffer is set to
|
||||||
the containing buffer.
|
`fzf`. So you can set up `FileType fzf` autocmd to customize the settings of
|
||||||
|
the window.
|
||||||
|
|
||||||
|
For example, if you use the default layout (`{'down': '~40%'}`) on Neovim, you
|
||||||
|
might want to temporarily disable the statusline for a cleaner look.
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
autocmd! FileType fzf
|
if has('nvim') && !exists('g:fzf_layout')
|
||||||
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
autocmd! FileType fzf
|
||||||
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
|
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
||||||
|
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
|
||||||
|
endif
|
||||||
```
|
```
|
||||||
|
|
||||||
[License](LICENSE)
|
[License](LICENSE)
|
||||||
|
18
doc/fzf.txt
18
doc/fzf.txt
@ -287,7 +287,7 @@ The latest versions of Vim and Neovim include builtin terminal emulator
|
|||||||
|
|
||||||
- On Neovim
|
- On Neovim
|
||||||
- On GVim
|
- On GVim
|
||||||
- On Terminal Vim with the non-default layout
|
- On Terminal Vim with a non-default layout
|
||||||
- `call fzf#run({'left': '30%'})` or `let g:fzf_layout = {'left': '30%'}`
|
- `call fzf#run({'left': '30%'})` or `let g:fzf_layout = {'left': '30%'}`
|
||||||
|
|
||||||
|
|
||||||
@ -319,12 +319,18 @@ Starting fzf in Neovim floating window~
|
|||||||
Hide statusline~
|
Hide statusline~
|
||||||
*fzf-hide-statusline*
|
*fzf-hide-statusline*
|
||||||
|
|
||||||
When fzf starts in a terminal buffer, you may want to hide the statusline of
|
When fzf starts in a terminal buffer, the file type of the buffer is set to
|
||||||
the containing buffer.
|
`fzf`. So you can set up `FileType fzf` autocmd to customize the settings of
|
||||||
|
the window.
|
||||||
|
|
||||||
|
For example, if you use the default layout (`{'down': '~40%'}`) on Neovim, you
|
||||||
|
might want to temporarily disable the statusline for a cleaner look.
|
||||||
>
|
>
|
||||||
autocmd! FileType fzf
|
if has('nvim') && !exists('g:fzf_layout')
|
||||||
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
autocmd! FileType fzf
|
||||||
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
|
autocmd FileType fzf set laststatus=0 noshowmode noruler
|
||||||
|
\| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
|
||||||
|
endif
|
||||||
<
|
<
|
||||||
|
|
||||||
LICENSE *fzf-license*
|
LICENSE *fzf-license*
|
||||||
|
Loading…
Reference in New Issue
Block a user