[Vim-latex-cvs] vimfiles/ftplugin/latex-suite elementmacros.vim,1.1.1.1,1.2
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2002-11-04 20:39:07
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory usw-pr-cvs1:/tmp/cvs-serv29925 Modified Files: elementmacros.vim Log Message: elementmacros.vim: I've added ref, label and footnotes elemets to menu X-Elements.Various. Index: elementmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/elementmacros.vim,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** elementmacros.vim 30 Apr 2002 00:03:15 -0000 1.1.1.1 --- elementmacros.vim 4 Nov 2002 20:39:03 -0000 1.2 *************** *** 3,10 **** " Author: Mikolaj Machowski " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: Sat Apr 27 01:00 PM 2002 PDT " " Description: macros for dimensions/fonts/counters. ! " (basic elements of tex formatting) "============================================================================= --- 3,10 ---- " Author: Mikolaj Machowski " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: pon lis 04 09:00 2002 C " " Description: macros for dimensions/fonts/counters. ! " and various common commands such ref/label/footnote. "============================================================================= *************** *** 20,23 **** --- 20,24 ---- exe 'aunmenu '.s:lastElementsLocation.'Dimension.' exe 'aunmenu '.s:lastElementsLocation.'Counters.' + exe 'aunmenu '.s:lastElementsLocation.'Various.' endif *************** *** 27,30 **** --- 28,32 ---- let s:dimensionMenuLoc = g:Tex_ElementsMenuLocation.'Dimension.' let s:counterMenuLoc = g:Tex_ElementsMenuLocation.'Counters.' + let s:variousMenuLoc = g:Tex_ElementsMenuLocation.'Various.' " ============================================================================== *************** *** 40,43 **** --- 42,46 ---- exe 'silent! aunmenu '.s:lastElementsLocation.'Dimension.' exe 'silent! aunmenu '.s:lastElementsLocation.'Counters.' + exe 'silent! aunmenu '.s:lastElementsLocation.'Various.' endfunction *************** *** 96,100 **** exe "vunmenu ".location endfunction " }}} ! " Tex_DimMenus: set up dimension menus {{{ function! <SID>Tex_CounterMenus(submenu, rhs) let location = s:counterMenuLoc.a:submenu.'.'.a:rhs.'<tab>' --- 99,103 ---- exe "vunmenu ".location endfunction " }}} ! " Tex_CounterMenus: set up counters menus {{{ function! <SID>Tex_CounterMenus(submenu, rhs) let location = s:counterMenuLoc.a:submenu.'.'.a:rhs.'<tab>' *************** *** 102,105 **** --- 105,114 ---- exe "vunmenu ".location endfunction " }}} + " Tex_VariousMenus: set up various menus {{{ + function! <SID>Tex_VariousMenus(desc, lhs) + let location = s:variousMenuLoc.a:desc.'<tab>' + exe "amenu ".location." <plug><C-r>=IMAP_PutTextWithMovement('".a:lhs."')<CR>" + exe "vunmenu ".location + endfunction " }}} endif " }}} *************** *** 303,306 **** --- 312,328 ---- call <SID>Tex_CounterMenus('Type', 'roman') call <SID>Tex_CounterMenus('Type', 'Roman') + " }}} + endif + + " ============================================================================== + " Various + " ============================================================================== + if g:Tex_Menus + " Various {{{ + call <SID>Tex_VariousMenus('ref{}' , '\ref{ä}«»') + call <SID>Tex_VariousMenus('label{}' , '\label{ä}«»') + call <SID>Tex_VariousMenus('footnote{}' , '\footnote{ä}«»') + call <SID>Tex_VariousMenus('footnotemark{}', '\footnotemark{ä}«»') + call <SID>Tex_VariousMenus('footnotemark{}', '\footnotetext{ä}«»') " }}} endif |