[Vim-latex-cvs] vimfiles/ftplugin/latex-suite envmacros.vim,1.39,1.40
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-11-30 09:51:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv12236 Modified Files: envmacros.vim Log Message: Change: Use the new Tex_MakeMap function from main.vim to simplify the code a little. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** envmacros.vim 11 Nov 2003 15:37:11 -0000 1.39 --- envmacros.vim 30 Nov 2003 09:51:24 -0000 1.40 *************** *** 854,872 **** function! Tex_SetFastEnvironmentMaps() if g:Tex_PromptedEnvironments != '' ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'i') ! imap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'n') ! nmap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentChange', 'i') ! imap <silent> <buffer> <S-F5> <Plug>Tex_FastEnvironmentChange ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentChange', 'n') ! nmap <silent> <buffer> <S-F5> <Plug>Tex_FastEnvironmentChange ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'v') ! vmap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif endif if g:Tex_HotKeyMappings != '' --- 854,862 ---- function! Tex_SetFastEnvironmentMaps() if g:Tex_PromptedEnvironments != '' ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'i', '<silent> <buffer>') ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'n', '<silent> <buffer>') ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'v', '<silent> <buffer>') ! call Tex_MakeMap("<S-F5>", "<Plug>Tex_FastEnvironmentChange", 'i', '<silent> <buffer>') ! call Tex_MakeMap("<S-F5>", "<Plug>Tex_FastEnvironmentChange", 'n', '<silent> <buffer>') endif if g:Tex_HotKeyMappings != '' *************** *** 911,919 **** function! Tex_SetItemMaps() ! if !hasmapto("\<Plug>Tex_InsertItem") ! imap <buffer> <Leader>it <Plug>Tex_InsertItemOnThisLine imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine endif ! if !hasmapto("\<Plug>Tex_InsertItemOnNextLine") imap <buffer> <C-CR> <Plug>Tex_InsertItemOnNextLine endif --- 901,908 ---- function! Tex_SetItemMaps() ! if !hasmapto("<Plug>Tex_InsertItem") imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine endif ! if !hasmapto("<Plug>Tex_InsertItemOnNextLine") imap <buffer> <C-CR> <Plug>Tex_InsertItemOnNextLine endif |