mirror of
https://github.com/junegunn/goyo.vim.git
synced 2025-11-12 13:23:51 -05:00
Toggle tmux full-screen pane when entering and leaving Goyo
This commit is contained in:
committed by
Hans Kristian Flaatten
parent
9a10a306f3
commit
0f298fe1fa
@@ -78,6 +78,7 @@ to be triggered on `GoyoEnter` and `GoyoLeave` events.
|
|||||||
```vim
|
```vim
|
||||||
function! s:goyo_enter()
|
function! s:goyo_enter()
|
||||||
silent !tmux set status off
|
silent !tmux set status off
|
||||||
|
silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
set scrolloff=999
|
set scrolloff=999
|
||||||
@@ -87,6 +88,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:goyo_leave()
|
function! s:goyo_leave()
|
||||||
silent !tmux set status on
|
silent !tmux set status on
|
||||||
|
silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z
|
||||||
set showmode
|
set showmode
|
||||||
set showcmd
|
set showcmd
|
||||||
set scrolloff=5
|
set scrolloff=5
|
||||||
|
|||||||
Reference in New Issue
Block a user