Adding frame environment to Vim LaTeX suite

Vim LATEXsuite is a neat plugin for Vim which makes editing LATEXdocuments much more fun than usual.

To the best of my knowledge, there is no direct support for Beamer for making presentations.

However, as it turns out, adding simple macros is relatively easy. All it took was a small edit in tex.vim in the folder ˜/.vim/ftpluings :

call IMAP('EFE',
"\\begin{frame}\<CR>\\setbeamercovered{dynamic}\<CR>\\frametitle{<++>}\<CR><++>\<CR>\\end{frame}<++>",
'tex')


And then the letters EFE automatically produce the rather nifty code in my .tex files:

\begin{frame}
\setbeamercovered{dynamic}
\frametitle{}
<++>
\end{frame}<++>


Letter EFR would have been more natural, but, unfortunately, they are already mapped to:

\begin{flushright}

\end{flushright}<++>


As per vim-latex suite nomenclature, EFE was the next option.

musically_ut 2014-04-03