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

14 lines
417 B
VimL
Raw Normal View History

" Both these plugins work well together for distraction free editing
2017-01-23 20:31:59 +00:00
command Zen :Goyo
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
function! s:goyo_enter()
Limelight
endfunction
function! s:goyo_leave()
Limelight!
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()