Simplify Goyo/Limelight

This commit is contained in:
Anthony Rose 2023-01-13 13:19:53 +00:00
parent 3b626ff437
commit 921f3c13e0

12
vimrc
View file

@ -145,8 +145,8 @@ if has('autocmd')
autocmd BufRead,BufNewFile *.yaml set et sw=2 autocmd BufRead,BufNewFile *.yaml set et sw=2
autocmd BufRead,BufNewFile *.yml set et sw=2 autocmd BufRead,BufNewFile *.yml set et sw=2
autocmd User GoyoEnter nested call <SID>goyo_enter() autocmd User GoyoEnter Limelight
autocmd User GoyoLeave nested call <SID>goyo_leave() autocmd User GoyoLeave Limelight!
augroup VCenterCursor augroup VCenterCursor
au! au!
@ -217,14 +217,6 @@ if has('wildmenu')
set wildmenu set wildmenu
endif endif
function! s:goyo_enter()
Limelight
endfunction
function! s:goyo_leave()
Limelight!
endfunction
" Customise colour schemes. Keep this near the end. " Customise colour schemes. Keep this near the end.
if &background ==# 'light' if &background ==# 'light'
highlight SpecialKey ctermfg=lightgray ctermbg=NONE highlight SpecialKey ctermfg=lightgray ctermbg=NONE