diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2017-11-19 12:07:03 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-11-19 12:07:54 +0900 |
| commit | fc1b119159f24136e64a85a8ea3dd51f19161602 (patch) | |
| tree | fa44ef9aacad66e2b565fa5671eb4c82672aed30 /README-VIM.md | |
| parent | 2cd0d4a9f7a0a0a86c1ee70da9fb970ec18eac50 (diff) | |
| download | fzf-fc1b119159f24136e64a85a8ea3dd51f19161602.tar.gz | |
[vim] Add instruction to hide statusline of terminal buffer (#1143)
Diffstat (limited to 'README-VIM.md')
| -rw-r--r-- | README-VIM.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/README-VIM.md b/README-VIM.md index 4913fc74..ccb9bf76 100644 --- a/README-VIM.md +++ b/README-VIM.md @@ -142,6 +142,28 @@ command! -bang MyStuff \ call fzf#run(fzf#wrap('my-stuff', {'dir': '~/my-stuff'}, <bang>0)) ``` +fzf inside terminal buffer +-------------------------- + +The latest versions of Vim and Neovim include builtin terminal emulator +(`:terminal`) and fzf will start in a terminal buffer in the following cases: + +- On Neovim +- On GVim +- On Terminal Vim with the non-default layout + - `call fzf#run({'left': '30%'})` or `let g:fzf_layout = {'left': '30%'}` + +### Hide statusline + +When fzf starts in a terminal buffer, you may want to hide the statusline of +the containing buffer. + +```vim +autocmd! FileType fzf +autocmd FileType fzf set laststatus=0 noshowmode noruler + \| autocmd BufLeave <buffer> set laststatus=2 showmode ruler +``` + GVim ---- |
