I want to made this function to be inserted at the present cursor position map :execute Insrt_frame() function! Insrt_frame()
ut='\begin{frame}'
ut='\frametitle{Motivation}'
ut=''
ut='\end{frame}' endfunction and after that, the cursor should go at the 3rd line of the function(the empty one). How can I do that?