Remove redundant lines from Goyo functions

This commit is contained in:
coolneng 2021-02-22 01:56:26 +01:00
parent fe6ce8c033
commit 8050930df6
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 0 additions and 6 deletions

View File

@ -50,9 +50,6 @@ set laststatus=0
autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown autocmd BufNewFile,BufRead /tmp/neomutt* set filetype=markdown
""Quit whether Goyo is active or not ""Quit whether Goyo is active or not
function! s:goyo_enter() function! s:goyo_enter()
set noshowmode
set noshowcmd
set scrolloff=999
let b:quitting = 0 let b:quitting = 0
let b:quitting_bang = 0 let b:quitting_bang = 0
autocmd QuitPre <buffer> let b:quitting = 1 autocmd QuitPre <buffer> let b:quitting = 1
@ -60,9 +57,6 @@ function! s:goyo_enter()
endfunction endfunction
function! s:goyo_leave() function! s:goyo_leave()
set showmode
set showcmd
set scrolloff=5
if b:quitting_bang if b:quitting_bang
qa! qa!
else else