vim-settings/vim/rc/plugins/goyo-limelight.rc.vim
ViViDboarder c16f793fb8 Pass lint
2019-10-24 13:58:45 -07:00

20 lines
459 B
VimL

" Both these plugins work well together for distraction free editing
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
let g:goyo_width = 120
command Zen :Goyo
function! s:goyo_enter()
Limelight
endfunction
function! s:goyo_leave()
Limelight!
endfunction
augroup zenevents
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
augroup end