Re: [Vim-latex-devel] environments
Brought to you by:
srinathava,
tmaas
From: Javier R. <jer...@gm...> - 2005-12-22 17:33:13
|
> Which files should I modify to get the desired behaviour (especially having > the placeholder below the environment name) ? I didn't liked the default expansion for the figure environment, so I redefined it. create (or modify) the file ~/.vim/ftplugin/tex.vim, and put a line (don't split it like my email client does) like this on it let Tex_Env_{'figure'}="\\begin{figure[htbp]\\centering\<CR>\\includegraphics[width=<++>] {<++>}\<CR>\\caption{<+caption+>}\\label{fig:<+label+>}\<CR>\\end{figure}\<CR><++>" the stuff between double quotes is the way you'll redefine the environment, in this case figure, in yours, equation. Don't forget the scape backslash. You can define too new environments this way, and get the expansion with the <F5> key All this I've explained is in the docs of vim-latex, although, in my opinion, a bit not so well presented, because you sort of know what to write but don't where to put it. Read the docs, Greets -- Javier |