mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
Add instruction to hide statusline of terminal buffer
https://github.com/junegunn/fzf/issues/1143
This commit is contained in:
20
README.md
20
README.md
@@ -276,8 +276,24 @@ inoremap <expr> <c-x><c-s> fzf#complete({
|
|||||||
\ 'left': 20})
|
\ 'left': 20})
|
||||||
```
|
```
|
||||||
|
|
||||||
Status line (neovim)
|
Status line of terminal buffer
|
||||||
--------------------
|
------------------------------
|
||||||
|
|
||||||
|
When fzf starts in a terminal buffer (see [fzf/README-VIM.md][termbuf]), you
|
||||||
|
may want to customize the statusline of the containing buffer.
|
||||||
|
|
||||||
|
[termbuf]: https://github.com/junegunn/fzf/blob/master/README-VIM.md#fzf-inside-terminal-buffer
|
||||||
|
|
||||||
|
### Hide statusline
|
||||||
|
|
||||||
|
```vim
|
||||||
|
if has('nvim') || has('gui_running')
|
||||||
|
autocmd! FileType fzf
|
||||||
|
autocmd FileType fzf set laststatus=0 | autocmd BufLeave <buffer> set laststatus=2
|
||||||
|
endif
|
||||||
|
```
|
||||||
|
|
||||||
|
### Custom statusline
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
function! s:fzf_statusline()
|
function! s:fzf_statusline()
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
fzf-vim.txt fzf-vim Last change: October 21 2017
|
fzf-vim.txt fzf-vim Last change: November 19 2017
|
||||||
FZF-VIM - TABLE OF CONTENTS *fzf-vim* *fzf-vim-toc*
|
FZF-VIM - TABLE OF CONTENTS *fzf-vim* *fzf-vim-toc*
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
@@ -15,7 +15,9 @@ FZF-VIM - TABLE OF CONTENTS *fzf-vim* *fzf-vim-to
|
|||||||
Usage
|
Usage
|
||||||
Completion helper
|
Completion helper
|
||||||
Reducer example
|
Reducer example
|
||||||
Status line (neovim)
|
Status line of terminal buffer
|
||||||
|
Hide statusline
|
||||||
|
Custom statusline
|
||||||
License
|
License
|
||||||
|
|
||||||
FZF :HEART: VIM *fzf-vim-fzf-heart-vim*
|
FZF :HEART: VIM *fzf-vim-fzf-heart-vim*
|
||||||
@@ -319,8 +321,26 @@ Reducer example~
|
|||||||
\ 'left': 20})
|
\ 'left': 20})
|
||||||
<
|
<
|
||||||
|
|
||||||
STATUS LINE (NEOVIM) *fzf-vim-status-lineneovim*
|
STATUS LINE OF TERMINAL BUFFER *fzf-vim-status-line-of-terminal-buffer*
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
|
When fzf starts in a terminal buffer (see {fzf/README-VIM.md}{11}), you may
|
||||||
|
want to customize the statusline of the containing buffer.
|
||||||
|
|
||||||
|
{11} https://github.com/junegunn/fzf/blob/master/README-VIM.md#fzf-inside-terminal-buffer
|
||||||
|
|
||||||
|
|
||||||
|
< Hide statusline >___________________________________________________________~
|
||||||
|
*fzf-vim-hide-statusline*
|
||||||
|
>
|
||||||
|
if has('nvim') || has('gui_running')
|
||||||
|
autocmd! FileType fzf
|
||||||
|
autocmd FileType fzf set laststatus=0 | autocmd BufLeave <buffer> set laststatus=2
|
||||||
|
endif
|
||||||
|
<
|
||||||
|
|
||||||
|
< Custom statusline >_________________________________________________________~
|
||||||
|
*fzf-vim-custom-statusline*
|
||||||
>
|
>
|
||||||
function! s:fzf_statusline()
|
function! s:fzf_statusline()
|
||||||
" Override statusline as you like
|
" Override statusline as you like
|
||||||
|
|||||||
Reference in New Issue
Block a user