From ff2df6e4b0705f553c4f36bc81db5404d759dde4 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 10 Mar 2021 12:56:40 +0100 Subject: [PATCH] hack: add a workaround for Goyo in small windows --- neovim/.config/nvim/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index 47062d4..1520405 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -52,6 +52,7 @@ autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown function! s:goyo_enter() let b:quitting = 0 let b:quitting_bang = 0 + call feedkeys('jk') autocmd QuitPre let b:quitting = 1 cabbrev q! let b:quitting_bang = 1 q! endfunction