Toggle tmux full-screen pane when entering and leaving Goyo

This commit is contained in:
Hans Kristian Flaatten
2016-03-29 13:39:15 +02:00
committed by Hans Kristian Flaatten
parent 9a10a306f3
commit 0f298fe1fa

View File

@@ -78,6 +78,7 @@ to be triggered on `GoyoEnter` and `GoyoLeave` events.
```vim
function! s:goyo_enter()
silent !tmux set status off
silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
set noshowmode
set noshowcmd
set scrolloff=999
@@ -87,6 +88,7 @@ endfunction
function! s:goyo_leave()
silent !tmux set status on
silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z
set showmode
set showcmd
set scrolloff=5