junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

goyo_enter() is not called at the time of activating Goyo pluging from vimrc #143

Open ultimatecoder opened 7 years ago

ultimatecoder commented 7 years ago
" Goyo
function! s:goyo_enter()
set relativenumber
endfunction

autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd BufRead *.md Goyo
junegunn commented 7 years ago

I'm not sure but try adding nested to your BufRead autocmd.

ultimatecoder commented 7 years ago

autocmd BufRead nested *.md Goyo Tried by this but ended with no results. Even the Goyo plugin is not activated.

bradleybauer commented 7 years ago

Add let g:goyo_linenr=1 to your .vimrc/init.vim file.