junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.52k stars 118 forks source link

Add loaded variable #230

Open parmort opened 4 years ago

parmort commented 4 years ago

Creates variable g:loaded_goyo. This has a few benefits:

  1. It guards the file from being loaded multiple times.
  2. It gives plugin authors a convenient and standardized method to check if Goyo is loaded.