Thanks. its solved.
main problem was to find the correct file to edit(which is
envmacros.vim).

On Tue, 2013-07-09 at 14:50 +0200, Ruthard Baudach wrote:
> Just redefine EFI in .vim/after/ftplugin/tex.vim or in .vimrc:
> 
> 
>   call IMAP ( 'EFI', "\\begin{figure}[<+htpb+>]\<CR>  \\centering\<CR>  
> \\includegraphics[scale=<++>]{<+figure+>}\<CR>  \\caption{<+caption 
> text+>}\<CR>  \\label{fig:<+label+>}\<CR>\\end{figure}<++>", 'tex')
> 
> 
> The files in .vim/after are loaded after the normal plugin processing
> took place, and are intended to override plugin code locally.
> 
> As .vimrc is loaded as last file, this code could be placed there, too.
> 
> Normally it was a bad idea to override a filetype plugin in .vimrc,
> as the definitions here affect all file types, but IMAP has the
> third parameter filetype, thus this redefinition in the .vimrc will
> affect only .tex files.
> 
> For a deeper understanding of IMAP try :help IMAP.
> 
> Take care to escape all "\" and the first "<" of the vim keycode for
> "Enter" (<CR>), and to use " for the second string.
> 
> There is one problem left: if you use this code, the formatting will be
> shifted one space each line. I think this might be due to the default
> "nopaste" mode of vim, and don't know how vim-latex solves this.
> 
> Either, if they shifted the default mode to "paste", it should work, or
> you will have to take a look on vim-latex's code to solve it.
> 
> Greetings,
> 
> Ruthard
> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Vim-latex-devel mailing list
> Vim-latex-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to