Re: [Vim-latex-devel] Add a placeholder in my keymap
Brought to you by:
srinathava,
tmaas
|
From: Alessandro P. <ale...@la...> - 2013-02-10 10:32:27
|
2013/2/10 Rudra Banerjee <rud...@ao...>:
> Dear friends,
> I have added this keymap in my vimrc:
> nmap <C-F12> :call Insrt_frame()
> function! Insrt_frame()
> :put='\begin{frame}'
> :put='\frametitle{<++>}'
> :put=''
> :put='\end{frame}'
> endfunction
>
> I am trying to put the cursor on the \frametitle.
> How can I achieve this?
Dear Rudra Banerjee,
adding the following to your .vimrc (preferably in an autocmd) instead
of your mapping will achieve what you're looking for:
let g:Tex_Env_frame="\\begin{frame}\<CR>\\frametitle{<++>}\<CR><++>\<CR>\\end{frame}<++>"
nmap <C-F12> iframe<F5>
For more information, have a look here [1].
Alessandro
[1] http://vim-latex.sourceforge.net/documentation/latex-suite/customizing-macros.html#Tex_Env_name
|