vim-settings/vim/rc/plugins/goyo-limelight.rc.vim

20 lines
420 B
VimL
Raw Permalink Normal View History

" Both these plugins work well together for distraction free editing
2024-07-19 22:05:09 +00:00
Blink 'junegunn/goyo.vim'
Blink 'junegunn/limelight.vim'
2017-11-18 02:11:06 +00:00
let g:goyo_width = 120
2019-10-24 20:58:45 +00:00
command Zen :Goyo
function! s:goyo_enter()
Limelight
endfunction
2019-10-24 20:58:45 +00:00
function! s:goyo_leave()
Limelight!
endfunction
2019-10-24 20:58:45 +00:00
augroup zenevents
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
augroup end