Re: mapping a function with key

2013-02-08 Thread Rudra Banerjee
So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. On Fri, 2013-02-08 at 15:12 +, Rudra Banerjee wrote: Thanks for your reply. I use vim-Latex suite On Fri, 2013-02-08 at

Re: mapping a function with key

2013-02-08 Thread rudrab
Ah...I managed to fix it almost with nmap in place of map. But one problem is still there: it inserts the lines at the top of the file. How can I make it insert at the cursor position? -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: mapping a function with key

2013-02-08 Thread Marcin Szamotulski
On 15:29 Fri 08 Feb , Rudra Banerjee wrote: So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. Functions should be called not executed: map f12 :call Insrt_fram()

RE: mapping a function with key

2013-02-08 Thread John Beckett
rudrab wrote: I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf Here is the complete code. In normal mode,