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

20 lines
459 B
VimL
Raw Permalink Normal View History

" 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
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