2017-01-06 01:19:19 +00:00
|
|
|
" Both these plugins work well together for distraction free editing
|
|
|
|
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
|
|
|
|
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
|
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
|