Re: [Vim-latex-devel] beamer support
Brought to you by:
srinathava,
tmaas
|
From: Alessandro P. <ale...@la...> - 2013-06-21 18:50:08
|
On 21 June 2013 19:33, Mike Richman <ri...@um...> wrote:
> " mappings for frame, block, and columns environments
> call IMAP ('EBFE', s:undostring."\\begin{frame}\<cr>{<++>}\<cr>"
> \ . "<++>\<cr>\\end{frame}<++>", 'tex')
> call IMAP ('EBBL', s:undostring."\\begin{block}{<++>}\<cr>"
> \ . "<++>\<cr>\\end{block}<++>", 'tex')
> call IMAP ('EBCO', s:undostring."\\begin{columns}\<cr>"
> \ . "\\column{.5\\textwidth}\<cr>"
> \ . "<++>\<cr>\\end{columns}<++>", 'tex')
>
> " this causes frames to be folded. sometimes the parsing goes poorly
> " and a bunch of extraneous folds are added, but it's still nice to
> " fully fold and unfold the frames using zC and zO.
> let Tex_FoldedEnvironments = 'verbatim,comment,frame,eq,gather,align,'
> \.'figure,table,thebibliography,keywords,abstract,'
> \.'titlepage'
Yes, although something like:
let g:Tex_Env_frame = \\begin{frame}\<cr>{<++>}\<cr><++>\<cr>\\end{frame}<++>"
call IMAP('EBFE', "\<C-r>=Tex_PutEnvironment('frame')\<cr>", 'tex')
(and similarly for the others) feels cleaner. Just my 2c.
Alessandro
|