title: Vimscript: use vim settings as variables / How to check if specific guioption is set or not
body: <p>I want to make a toggle function in gvim that would turn on/off scrollbar and wrap option.</p>
  
  <p>There is no problem for toggling wrap option. I simply use <code>set wrap!</code>.
  To change horizontal scrollbar setting I need to check the value of <code>wrap</code> option or <code>guioptions</code>.</p>
  
  <p>The question is how to read value of <code>wrap</code> or <code>guioptions</code>? Do you have some other hits?</p>