2017-01-06 01:19:19 +00:00
|
|
|
" 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
|
|
|
|
|
2017-01-06 01:19:19 +00:00
|
|
|
function! s:goyo_enter()
|
|
|
|
Limelight
|
|
|
|
endfunction
|
2019-10-24 20:58:45 +00:00
|
|
|
|
2017-01-06 01:19:19 +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
|