mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-15 14:56:26 +00:00
4f41d766a8
Also added Goyo
12 lines
376 B
VimL
12 lines
376 B
VimL
" Both these plugins work well together for distraction free editing
|
|
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
|
|
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
|
|
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()
|