typewriter.vim
typewriter.vim copied to clipboard
Add +sound check
+sound can be compiled into the source with ./configure --with-features=huge [--disable-gui].
Please add sanity check at the start:
if !has('sound') finish endif
There is a check here inside the :TypewriterEnable
command: https://github.com/AndrewRadev/typewriter.vim/blob/514eeb4df6d9ff8926dd535afa8ca3b9514f36f0/autoload/typewriter.vim#L15-L20
Adding the check in the command allows me to print an explanatory message, otherwise if you don't have +sound
, the command simply won't exist and someone installing the plugin might not understand why.
Is there a scenario for you where checking for +sound
doesn't kick in?
noop, it gives a vim error message if not at the start.
Could you paste the error message? The backtrace could show me where the error is coming from.