[Vim-latex-devel] Add a placeholder in my keymap
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
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
Re: [Vim-latex-devel] Questions about adding options of ps2pdf while Windows
Hi Alessandro, Thanks for your help. I tried to use double quotes while escaping the '#' with '\', then it again shows E194: No alternate file name to substitute for '#'. Anyway, I think I can still achieve my goal by avoid using options in ps2pdf. Best Regards, Hao Fang On Sat, Feb 9, 2013 at 3:32 AM, Alessandro Pezzoni alessandro_pezz...@lavabit.com wrote: 2013/2/9 Hao Fang allen.fu...@gmail.com: If I use :!ps2pdf -sPAPERSIZE\#letter document.ps document.pdf (adding '\' before '#'), then it works. [...] However, if I set it in tex.vim, i.e., let g:Tex_CompileRule_pdf = 'ps2pdf -sPAPERSIZE\#letter $*.ps $.pdf' It will actually run :!ps2pdf -sPAPERSIZE\#letter document.ps document.pdf C:/Users/... Dear Hao Fang, escaping the '#' (i.e. adding '\' in front of it) should be indeed the way to go. I don't know at which point in the code the substitutions are made, but you could try changing the quotes with double quotes (i.e. put instead of '). You could have to escape some other characters in that case, though. If you don't need the .dvi or the .ps, you could also try to bypass the issue entirely by compiling with pdflatex (this could possibly require some small tweaks in your source file, though). Alessandro -- 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] Problem pasting between files
Hi, I can't reproduce this behaviour. All registers (, *, +) are not affected by opening a new (g)vim session (with or without latex-suite). I'm using my own version of latex-suite (https://github.com/gerw/vim-latex-suite). Regards Gerd On 02/09/2013 09:18 PM, David Woodfall wrote: On (09/02/13 20:53), Bodo Graumann m...@bodograumann.de put forth the proposition: Indeed I'm using Gentoo linux and the rather old vim-latex version 1.8.23.20110214. Could very well be that this is a known and fixed issue. Btw. only the * register is affected, not the + one. Bodo Slackware here. Vim 7.3.645 vim-latex-1.8.23-20121116.784-git1c17b37.tar.gz Am Sat, 9 Feb 2013 20:41:12 +0100 schrieb Alessandro Pezzoni alessandro_pezz...@lavabit.com: | 2013/2/9 Bodo Graumann m...@bodograumann.de: | I can confirm something like this. | Usually if I select some text anywhere (in any application), then | open gvim, open a file, I can paste the original selection right | into it. But not so with .tex-files. When those are opened, the | copy-paste-buffer is overwritten with the content of the file. So | when it’s a new .tex file a single empty line would be pasted. | | I can't reproduce this here (on ArchLinux). Both * and + registers | are set to the current clipboard values when opening both tex and | non-tex files with gvim. Does this happen with any tex file? I gather | you are using Linux? If so, which distribution? | | Alessandro -- 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