[Vim-latex-devel] change the IMAP
Brought to you by:
srinathava,
tmaas
From: Rudra B. <bnr...@li...> - 2014-09-04 12:32:46
|
Hi, In vim-latex, there is two IMAP for figure: let s:figure = "\\begin{figure}[<+htpb+>]\<cr>\\centering\<cr>\ \psfig{figure=<+eps file+>}\<cr>\\caption{<+caption text+>}\<cr>\ \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" . s:end_with_cr . "<++>" let s:figure_graphicx = "\\begin{figure}[<+htpb+>]\<cr>\\centering \<cr>\\includegraphics{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\ \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" . s:end_with_cr . "<++>" And, EFI always picks the s:figure, and I am unable to access s:figure_graphics. I have also tried to put the figure_graphics to my vimrc and rename it to figure, which is givine error: $ vi i.tex Error detected while processing ~/.vimrc: line 110: E121: Undefined variable: s:labelprefix_figure E15: Invalid expression: "\\begin{figure}[<+htpb+>]\<cr>\\centering \<cr>\\includegraphics{<+file+>}\<cr>\\caption{<+caption text+>}\<cr>\ \label{" . s:labelprefix_figure . "<+label+>}\<cr>\\end{figure}" . s:end_with_cr . "<++>" I am just an enduser without much knowledge of twiking it. Is there any way I can use EFI for figure_graphicx? |