summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2019-11-29 18:32:49 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2019-11-29 18:32:49 +0900
commit1dd256a68a0ccf52b5cb229147d6f251893f1efc (patch)
tree5546aa105fca997918211b52fcb0550c643f97c8 /doc
parent85644aa3fb9da6fbe1807b793f085130932594ce (diff)
Update README-VIM
Diffstat (limited to 'doc')
-rw-r--r--doc/fzf.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/fzf.txt b/doc/fzf.txt
index 49f0283e..4c1697cf 100644
--- a/doc/fzf.txt
+++ b/doc/fzf.txt
@@ -287,7 +287,7 @@ The latest versions of Vim and Neovim include builtin terminal emulator
- On Neovim
- 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%'}`
@@ -319,12 +319,18 @@ Starting fzf in Neovim floating window~
Hide statusline~
*fzf-hide-statusline*
-When fzf starts in a terminal buffer, you may want to hide the statusline of
-the containing buffer.
+When fzf starts in a terminal buffer, the file type of the buffer is set to
+`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
- autocmd FileType fzf set laststatus=0 noshowmode noruler
- \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
+ if has('nvim') && !exists('g:fzf_layout')
+ autocmd! FileType fzf
+ autocmd FileType fzf set laststatus=0 noshowmode noruler
+ \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler
+ endif
<
LICENSE *fzf-license*