title: Using if statement to execute different command based on a global variable value
body: <p>I want to execute <code>:set winminheight=1&lt;cr&gt;^W=^W_</code> if the value of variable <code>winminheight</code> is <code>0</code>.
  else I want to run <code>:set winminheight=0&lt;cr&gt;^W_</code></p>
  
  <p>I tried below mapping script to accomplish this but it doesn't work. I get no error either. </p>
  
  <pre><code>nnoremap &lt;silent&gt;  &lt;leader&gt;0 
  \ : if (&amp;g:winminheight ==0) &lt;BAR&gt;
  \   execute "normal! :set winminheight=1""\&lt;lt&gt;cr&gt;^W=^W_" &lt;BAR&gt;
  \ else &lt;BAR&gt;
  \   execute "normal! :set winminheight=0""\&lt;lt&gt;cr&gt;^W_" &lt;BAR&gt;
  \ endif &lt;CR&gt;
  </code></pre>
  
  <p>When I call the mapping, it doesn't respond at all.
  Please help me to fix this.</p>