Re: [Vim-latex-devel] Add a placeholder in my keymap
Why don’t you use call IMAP('FRM', \\begin{frame}^M\frametitle{++}^M++^M\\end{frame}++, 'tex') possibly into ~/.vim/after/ftplugin/tex/latex_suite.vim Am Sun, 10 Feb 2013 09:39:16 + schrieb 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? | | | -- | 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 | signature.asc Description: PGP signature -- 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
Re: [Vim-latex-devel] Add a placeholder in my keymap
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 iframeF5 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
Re: [Vim-latex-devel] Add a placeholder in my keymap
Ah...thats great! Thanks On Sun, 2013-02-10 at 10:57 +0100, Bodo Graumann wrote: Why don’t you use call IMAP('FRM', \\begin{frame}^M\frametitle{++}^M++^M\\end{frame}++, 'tex') possibly into ~/.vim/after/ftplugin/tex/latex_suite.vim Am Sun, 10 Feb 2013 09:39:16 + schrieb 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? | | | -- | 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 | -- 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