hack: add a workaround for Goyo in small windows
This commit is contained in:
parent
8c2bbf0a99
commit
ff2df6e4b0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue