2013/2/10 Rudra Banerjee <rudra.baner...@aol.co.uk>: > Dear friends, > I have added this keymap in my vimrc: > nmap <C-F12> :call Insrt_frame() > function! Insrt_frame() > :put='\begin{frame}' > :put='\frametitle{<++>}' > :put='' > :put='\end{frame}' > endfunction > > I am trying to put the cursor on the \frametitle. > How can I achieve this?
Dear Rudra Banerjee, adding the following to your .vimrc (preferably in an autocmd) instead of your mapping will achieve what you're looking for: let g:Tex_Env_frame="\\begin{frame}\<CR>\\frametitle{<++>}\<CR><++>\<CR>\\end{frame}<++>" nmap <C-F12> iframe<F5> For more information, have a look here [1]. Alessandro [1] http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-macros.html#Tex_Env_name ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel