How to execute a normal mode command in a vim function?
<p>I am writing a vim function to insert some text in a c++ file, please see the following function:</p>

<pre><code>function! InsertDebugInfo()                                                                      
     let i = line('.')                                                               
     call append(i+1, '#ifdef DEBUG')                                                
     call append(i+2, 'std::cout &lt;&lt; ""  &lt;&lt; std::endl;')                              
     call append(i+3, '#endif')                                                      
     call append(i+4, '')                                                            
     call cursor(i+3, 0)                                                             
endfunction    
</code></pre>

<p>In normal mode, I use <code>==</code> to re-indent one code line. My question is 
how to call <code>==</code> in the above function. Furthermore, how to execute the
command such as <code>2f"</code> which move the cursor to the second <code>"</code>.</p>