diff --git a/README.md b/README.md index fa7be98..425581d 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ This plugin requires the use of Junegunn's [Goyo][1]. I personally use his plugin manager, [vim-plug][2], as well. Here is the subsequent code for installing this using vim-plug. -[1]:https://github.com/junegunn/goyo.vim -[2]:https://github.com/junegunn/vim-plug +[1]: https://github.com/junegunn/goyo.vim +[2]: https://github.com/junegunn/vim-plug ```vim Plug 'junegunn/goyo.vim' @@ -45,6 +45,20 @@ The flashcards are stored in a list called `g:flashy`. Each sublist is an individual card. This list is unlet and let (see `:h let` and `:h unlet`) each time `:Flash` or `:FlashList` is run. +# Some more notes... + +If you hook into Goyo's autocommands, the changes you make in there will be set in Flashy. If you want to gate some of the settings, use the following if statement: + +```vim +if !exists('g:loaded_flashy') || !g:inFlashy + " Flashy isn't loaded +endif + +if exists('g:loaded_flashy') && g:inFlashy + " Flashy is loaded +endif +``` + # Legal Stuff This piece of software is licensed under the MIT license (see `LICENSE`).