hack: add a workaround for Goyo in small windows

This commit is contained in:
coolneng 2021-03-10 12:56:40 +01:00
parent 8c2bbf0a99
commit ff2df6e4b0
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown
function! s:goyo_enter() function! s:goyo_enter()
let b:quitting = 0 let b:quitting = 0
let b:quitting_bang = 0 let b:quitting_bang = 0
call feedkeys('jk')
autocmd QuitPre <buffer> let b:quitting = 1 autocmd QuitPre <buffer> let b:quitting = 1
cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q! cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q!
endfunction endfunction