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