vim-latex-cvs Mailing List for Vim-Latex (Page 15)
Brought to you by:
srinathava,
tmaas
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(82) |
Dec
(124) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(104) |
Feb
(3) |
Mar
(6) |
Apr
(48) |
May
(34) |
Jun
(62) |
Jul
(33) |
Aug
(24) |
Sep
(32) |
Oct
(16) |
Nov
(36) |
Dec
(39) |
2004 |
Jan
|
Feb
(3) |
Mar
(8) |
Apr
|
May
(29) |
Jun
(13) |
Jul
(4) |
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
(2) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
(6) |
Dec
(9) |
2006 |
Jan
(9) |
Feb
(2) |
Mar
(16) |
Apr
(5) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(22) |
Jun
(1) |
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(17) |
Sep
(3) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
2010 |
Jan
(25) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(8) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(10) |
Oct
(1) |
Nov
|
Dec
(1) |
2012 |
Jan
(5) |
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(15) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: <sri...@us...> - 2003-10-23 03:07:52
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv18537 Modified Files: folding.vim Log Message: New: suggestions and fixes from Aditya Mahajan Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** folding.vim 16 Sep 2003 22:50:30 -0000 1.12 --- folding.vim 23 Oct 2003 01:51:00 -0000 1.13 *************** *** 13,22 **** au LatexSuite User LatexSuiteFileType \ call Tex_Debug('folding.vim: catching LatexSuiteFileType') | ! \ call s:SetFoldOptions() augroup END ! " SetFoldOptions: sets maps for every buffer {{{ " Description: ! function! <SID>SetFoldOptions() if exists('b:doneSetFoldOptions') return --- 13,22 ---- au LatexSuite User LatexSuiteFileType \ call Tex_Debug('folding.vim: catching LatexSuiteFileType') | ! \ call Tex_SetFoldOptions() augroup END ! " Tex_SetFoldOptions: sets maps for every buffer {{{ " Description: ! function! Tex_SetFoldOptions() if exists('b:doneSetFoldOptions') return *************** *** 176,179 **** --- 176,187 ---- \ ) " }}} + " {{{ thebibliography + call AddSyntaxFoldItem ( + \ '^\s*\\begin{thebibliography}', + \ '^\s*\\end{thebibliography}', + \ 0, + \ 0 + \ ) + " }}} " {{{ table call AddSyntaxFoldItem ( *************** *** 200,203 **** --- 208,212 ---- \ ) " }}} + " {{{ gather call AddSyntaxFoldItem ( \ '^\s*\\begin{gather', *************** *** 236,240 **** call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, --- 245,249 ---- call AddSyntaxFoldItem ( \ '^\s*\\subsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, *************** *** 244,248 **** call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, --- 253,257 ---- call AddSyntaxFoldItem ( \ '^\s*\\section\W', ! \ '^\s*\\appendix\W\|^\s*\\section\W\|^\s*\\bibliography\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, *************** *** 252,256 **** call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1, --- 261,265 ---- call AddSyntaxFoldItem ( \ '^\s*%%fakesection', ! \ '^\s*\\appendix\W\|^\s\\section\W\|^\s*%%fakesection\|^\s*\\bibliography\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1, *************** *** 260,264 **** call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', \ 0, \ -1 --- 269,273 ---- call AddSyntaxFoldItem( \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\bibliography\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', \ 0, \ -1 *************** *** 282,286 **** function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\)[^}]*\ze}') let caption = '' --- 291,295 ---- function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|sidewaysfigure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\|thebibliography\)[^}]*\ze}') let caption = '' |
From: <sri...@us...> - 2003-10-23 02:32:05
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv17776 Modified Files: envmacros.vim Log Message: Fix: Tex_thebibliography did not use the Tex_UseMenuWizard setting. Thus <F5> completion would always ask some questions. Change: A little change to the Tex_InsertItem() function and the way the styles for the various environments are done. In the present way, we define global variables of the form: g:Tex_ItemStyle_thebibliography = \ '\item[<+biblabel+>]{<+bibkey+>} ' This is more flexible than the old approach because this way, the item style can be arbitrarily complex instead of being limited to one of four styles. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** envmacros.vim 10 Oct 2003 07:16:36 -0000 1.37 --- envmacros.vim 23 Oct 2003 01:45:39 -0000 1.38 *************** *** 490,504 **** " Tex_thebibliography: {{{ function! Tex_thebibliography(env) ! " AUC Tex: "Label for BibItem: 99" ! let indent = input('Indent for BibItem? ') ! let foo = '{'.indent.'}' ! let biblabel = input('(Optional) Bibitem label? ') ! let key = input('Add key? ') ! let bar = '\bibitem' ! if biblabel != '' ! let bar = bar.'['.biblabel.']' ! endif ! let bar = bar.'{'.key.'}' ! return IMAP_PutTextWithMovement('\begin{thebibliography}'.foo."\<cr>".bar." \<cr>\\end{thebibliography}<++>\<Up>") endfunction " }}} --- 490,508 ---- " Tex_thebibliography: {{{ function! Tex_thebibliography(env) ! if g:Tex_UseMenuWizard == 1 ! " AUC Tex: "Label for BibItem: 99" ! let indent = input('Indent for BibItem? ') ! let foo = '{'.indent.'}' ! let biblabel = input('(Optional) Bibitem label? ') ! let key = input('Add key? ') ! let bar = '\bibitem' ! if biblabel != '' ! let bar = bar.'['.biblabel.']' ! endif ! let bar = bar.'{'.key.'}' ! return IMAP_PutTextWithMovement('\begin{thebibliography}'.foo."\<cr>".bar." \<cr>\\end{thebibliography}<++>\<Up>") ! else ! return IMAP_PutTextWithMovement("\\begin{thebibliography}\<CR><++>\<CR>\\end{thebibliography}<++>") ! endif endfunction " }}} *************** *** 868,871 **** --- 872,876 ---- endif endfunction " }}} + " ============================================================================== " Contributions / Tex_InsertItem() from Johannes Tanzler *************** *** 876,885 **** " Env names are stored in g: variables it can be used by " package files. - let g:Tex_ItemNormal = ',itemize,enumerate,theindex,' - let g:Tex_ItemBib = ',thebibliography,' - let g:Tex_ItemDescription = ',description,' - function! Tex_InsertItem() ! " Get current environment: let pos = line('.').' | normal! '.virtcol('.').'|' let env_line = search('^[^%]*\\begin{', 'bW') --- 881,893 ---- " Env names are stored in g: variables it can be used by " package files. ! TexLet g:Tex_ItemStyle_itemize = '\item ' ! TexLet g:Tex_ItemStyle_enumerate = '\item ' ! TexLet g:Tex_ItemStyle_theindex = '\item ' ! TexLet g:Tex_ItemStyle_thebibliography = '\item[<+biblabel+>]{<+bibkey+>} ' ! TexLet g:Tex_ItemStyle_description = '\item[<+lablel+>] ' ! ! function! Tex_InsertItem() ! " Get current enclosing environment let pos = line('.').' | normal! '.virtcol('.').'|' let env_line = search('^[^%]*\\begin{', 'bW') *************** *** 887,906 **** exe pos ! if g:Tex_ItemNormal =~ ','.env.',' ! return IMAP_PutTextWithMovement("\\item ") ! elseif g:Tex_ItemDescription =~ ','.env.',' ! return IMAP_PutTextWithMovement("\\item[<+label+>] <++>") ! elseif g:Tex_ItemBib =~ ','.env.',' ! return IMAP_PutTextWithMovement("\\item[<+biblabel+>]{<+bibkey+>}<++>") ! else ! return '' ! endif ! endfunction ! inoremap <C-CR> <ESC>o<C-R>=Tex_InsertItem()<CR> ! inoremap <Leader>it <C-R>=Tex_InsertItem()<CR> - " }}} " ============================================================================== " Implementation of Fast Environment commands for LaTeX commands --- 895,921 ---- exe pos ! if exists('g:Tex_ItemStyle_'.env) ! return IMAP_PutTextWithMovement(g:Tex_ItemStyle_{env}) ! else ! return '' ! endif endfunction + " }}} + " Tex_SetItemMaps: sets the \item inserting maps for current buffer {{{ + " Description: ! inoremap <script> <silent> <Plug>Tex_InsertItemOnThisLine <Esc>a<C-r>=Tex_InsertItem()<CR> ! inoremap <script> <silent> <Plug>Tex_InsertItemOnNextLine <ESC>o<C-R>=Tex_InsertItem()<CR> ! ! 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 ! endfunction " }}} " ============================================================================== " Implementation of Fast Environment commands for LaTeX commands *************** *** 1095,1098 **** --- 1110,1114 ---- call Tex_SetFastCommandMaps() endif + call Tex_SetItemMaps() endfunction " }}} " Catch the Filetype event so we set maps for each buffer {{{ |
From: <sri...@us...> - 2003-10-23 02:23:07
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv18015 Modified Files: brackets.vim Log Message: Removed Tex_InsertItem from this file to be put into envmacros.vim Index: brackets.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/brackets.vim,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** brackets.vim 9 Oct 2003 23:58:13 -0000 1.9 --- brackets.vim 23 Oct 2003 01:47:20 -0000 1.10 *************** *** 1,5 **** " ============================================================================== ! " Author: Carl Mueller ! " (incorporated into latex-suite by Srinath Avadhanula) " Description: " This ftplugin provides the following maps: --- 1,8 ---- " ============================================================================== ! " History: This was originally part of auctex.vim by Carl Mueller. ! " Srinath Avadhanula incorporated it into latex-suite with ! " significant modifications. ! " Parts of this file may be copyrighted by others as noted. ! " CVS: $Id$ " Description: " This ftplugin provides the following maps: *************** *** 28,41 **** " These functions make it extremeley easy to do all the \left \right stuff in " latex. - " - " NOTE: The insert mode maps are created only if maps are no maps already to - " the relevant functions Tex_MathBF, Tex_MathCal and Tex_LeftRight. This is to - " enable people who might need the alt keys for typing to use some other - " keypress to trigger the same behavior. In order to use some other key, (say - " <C-c>) to use Tex_MathCal(), do the following - " - " inoremap <buffer> <silent> <C-c> <C-r>=Tex_MathCal()<CR> - " " ============================================================================== " Avoid reinclusion. if exists('b:did_brackets') --- 31,36 ---- " These functions make it extremeley easy to do all the \left \right stuff in " latex. " ============================================================================== + " Avoid reinclusion. if exists('b:did_brackets') *************** *** 56,60 **** inoremap <silent> <Plug>Tex_MathCal <C-r>=Tex_MathCal()<CR> inoremap <silent> <Plug>Tex_LeftRight <C-r>=Tex_LeftRight()<CR> - inoremap <Plug>Tex_InsertItem <Esc>a<C-r>=Tex_InsertItem()<CR> " Provide mappings only if the user hasn't provided a map already or if the --- 51,54 ---- *************** *** 71,78 **** imap <buffer> <silent> <M-l> <Plug>Tex_LeftRight endif - if !hasmapto("\<Plug>Tex_InsertItem") - inoremap <M-i> <C-R>=Tex_InsertItem()<CR> - endif - " }}} --- 65,68 ---- *************** *** 165,216 **** endif endfunction " }}} - " Tex_InsertItem: insert item into a list {{{ - " Description: a polymorphic function which inserts various formatted \item - " commands depending on the environment surrounding the cursor. If outside a - " list, then do nothing. - " - " (C) 2003 by Johannes Tanzler, <joh...@ao...> - " modifications by Srinath Avadhanula - function! Tex_InsertItem() - " Remember where we are. - let curpos = line('.').' | normal! |'.virtcol('.') - let curline = line('.') - - " Get one of the relevant environments before this line. - let env_line = search( - \ '^\s*\\begin{\(itemize\|enumerate\|theindex\|description\|labeling\|thebibliography\)', 'bW') - " If none found then return. - if env_line == 0 - return '' - endif - " We are at the beginning of the environment. - let env = matchstr(getline(env_line), '{\zs.\{-}\ze}') - call Tex_Debug("env = ".env, "bra") - " search forward for the end of the environment. If the end of the - " environment occurs before where we originally were, means we were - " outside (after the end) of the environment. In this do nothing. - let env_line_end = search('^\s*\\end{'.env) - - call Tex_Debug("env_line = ".env_line.', env_line_end = '.env_line_end, "bra") - if env_line_end < curline - exec curpos - return '' - endif - - exec curpos - - if env =~ '\(itemize\|enumerate\|theindex\)' - return IMAP_PutTextWithMovement("\\item ") - elseif env =~ '\(description\|labeling\)' - if env =~ 'labeling' | let add = '\sfb ' | else | let add = '' | endif - return IMAP_PutTextWithMovement("\\item[" . add . "<+label+>] <++>") - elseif env =~ '\(thebibliography\)' - return IMAP_PutTextWithMovement("\\item[<+biblabel+>]{<+bibkey+>}<++>") - else - return "" - endif - endfunction - - " }}} " vim:fdm=marker --- 155,158 ---- |
From: <mi...@us...> - 2003-10-10 07:16:41
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11641 Modified Files: envmacros.vim ChangeLog Log Message: Johannes Tanzlers InsertItem function - insert item depending on environment Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** envmacros.vim 13 Sep 2003 07:06:41 -0000 1.36 --- envmacros.vim 10 Oct 2003 07:16:36 -0000 1.37 *************** *** 868,872 **** --- 868,906 ---- endif endfunction " }}} + " ============================================================================== + " Contributions / Tex_InsertItem() from Johannes Tanzler + " ============================================================================== + " Tex_InsertItem: insert \item into a list {{{ + " Description: Find last \begin line, extract env name, return to the start + " position and insert proper \item, depending on env name. + " Env names are stored in g: variables it can be used by + " package files. + let g:Tex_ItemNormal = ',itemize,enumerate,theindex,' + let g:Tex_ItemBib = ',thebibliography,' + let g:Tex_ItemDescription = ',description,' + function! Tex_InsertItem() + + " Get current environment: + let pos = line('.').' | normal! '.virtcol('.').'|' + let env_line = search('^[^%]*\\begin{', 'bW') + let env = matchstr(getline(env_line), '\\begin{\zs.\{-}\ze}') + exe pos + if g:Tex_ItemNormal =~ ','.env.',' + return IMAP_PutTextWithMovement("\\item ") + elseif g:Tex_ItemDescription =~ ','.env.',' + return IMAP_PutTextWithMovement("\\item[<+label+>] <++>") + elseif g:Tex_ItemBib =~ ','.env.',' + return IMAP_PutTextWithMovement("\\item[<+biblabel+>]{<+bibkey+>}<++>") + else + return '' + endif + + endfunction + + inoremap <C-CR> <ESC>o<C-R>=Tex_InsertItem()<CR> + inoremap <Leader>it <C-R>=Tex_InsertItem()<CR> + + " }}} " ============================================================================== " Implementation of Fast Environment commands for LaTeX commands Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** ChangeLog 29 Sep 2003 02:23:49 -0000 1.12 --- ChangeLog 10 Oct 2003 07:16:36 -0000 1.13 *************** *** 1,2 **** --- 1,8 ---- + 10 Oct 2003 + Features + * envmacros.vim: + Tex_InsertItem function. Inserts \item depending on current listing + directory. (Johannes Tanzler, MM) + 29 Sep 2003 Changes |
From: <sri...@us...> - 2003-10-10 00:14:08
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv23236 Modified Files: latex-suite.xml latex-suite.txt Log Message: New: Description of Johannes Tanzler's Tex_InsertItem functionality. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** latex-suite.xml 9 Oct 2003 21:21:01 -0000 1.22 --- latex-suite.xml 10 Oct 2003 00:14:04 -0000 1.23 *************** *** 738,742 **** </formalpara> </section> ! <section id="bracketing-macros"> <title>Alt Key Macros</title> <para> --- 738,742 ---- </formalpara> </section> ! <section id="altkey-mappings"> <title>Alt Key Macros</title> <para> *************** *** 824,827 **** --- 824,835 ---- </para> </section> + <section id="Alt-I"> + <title><literal><Alt-I></literal></title> + <para> + This mapping inserts an <literal>\item</literal> command at the + current cursor location. Depending on the context, it might instead + insert <literal>\item[]</literal>, <literal>\item[]{}</literal> etc. + </para> + </section> </section> <section id="custom-macros-menu"> *************** *** 2412,2416 **** <para> These mappings are are described in the section <link ! linkend="bracketing-macros">Alt key macros</link>. See <link linkend="remapping-latex-suite-keys">the parent section</link> to see how to use the following information to remap keys. --- 2420,2424 ---- <para> These mappings are are described in the section <link ! linkend="altkey-mappings">Alt key macros</link>. See <link linkend="remapping-latex-suite-keys">the parent section</link> to see how to use the following information to remap keys. *************** *** 2419,2422 **** --- 2427,2431 ---- <anchor id="Plug_Tex_MathCal" /> <anchor id="Plug_Tex_LeftRight" /> + <anchor id="Plug_Tex_InsertItem" /> <informaltable frame="all"> <tgroup cols="2"> *************** *** 2439,2442 **** --- 2448,2455 ---- <entry><literal><Plug>Tex_LeftRight</literal></entry> <entry><literal><Alt-L></literal></entry> + </row> + <row> + <entry><literal><Plug>Tex_InsertItem</literal></entry> + <entry><literal><Alt-I></literal></entry> </row> </tbody> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** latex-suite.txt 3 Oct 2003 07:43:14 -0000 1.44 --- latex-suite.txt 10 Oct 2003 00:14:04 -0000 1.45 *************** *** 12,16 **** macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dz|] for a list of people who have helped. --- 12,16 ---- macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dB|] for a list of people who have helped. [...2706 lines suppressed...] ! Hari Krishna Dara for ExecMap(), the clever little function which makes typing visual mode ! mappings so much easier and error-free. ! Alan G Isac for the comprehensive BibT() function for entering bibtex entries. Gontran Baerts for libList.vim ! Peter Heslin useful discussion and also a lot of bug fixes. the %%fakesection in folding.vim. A large number of functions in latex-suite come from various other people. Some *************** *** 2904,2908 **** out who has done what. ! *latex-suite-maintainer* *ls_a_ee* The current maintainer(s) of latex-suite is(are) --- 2890,2894 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_eh* The current maintainer(s) of latex-suite is(are) |
From: <sri...@us...> - 2003-10-09 23:58:16
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv20763 Modified Files: brackets.vim Log Message: New: Johannes Tanzler's Tex_InsertItem function to insert an \item command with extra options depending on the surrounding environment. Index: brackets.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/brackets.vim,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** brackets.vim 31 Dec 2002 19:15:37 -0000 1.8 --- brackets.vim 9 Oct 2003 23:58:13 -0000 1.9 *************** *** 2,6 **** " Author: Carl Mueller " (incorporated into latex-suite by Srinath Avadhanula) - " Last Change: Tue Dec 31 11:00 AM 2002 PST " Description: " This ftplugin provides the following maps: --- 2,5 ---- *************** *** 22,25 **** --- 21,28 ---- " 3. q<M-l> \lefteqn{} " otherwise insert \label{} + " . <M-i> inserts \item commands at the current cursor location depending on + " the surrounding environment. For example, inside itemize, it will + " insert a simple \item, but within a description, it will insert + " \item[<+label+>] etc. " " These functions make it extremeley easy to do all the \left \right stuff in *************** *** 53,56 **** --- 56,60 ---- inoremap <silent> <Plug>Tex_MathCal <C-r>=Tex_MathCal()<CR> inoremap <silent> <Plug>Tex_LeftRight <C-r>=Tex_LeftRight()<CR> + inoremap <Plug>Tex_InsertItem <Esc>a<C-r>=Tex_InsertItem()<CR> " Provide mappings only if the user hasn't provided a map already or if the *************** *** 67,70 **** --- 71,77 ---- imap <buffer> <silent> <M-l> <Plug>Tex_LeftRight endif + if !hasmapto("\<Plug>Tex_InsertItem") + inoremap <M-i> <C-R>=Tex_InsertItem()<CR> + endif " }}} *************** *** 158,161 **** --- 165,216 ---- endif endfunction " }}} + " Tex_InsertItem: insert item into a list {{{ + " Description: a polymorphic function which inserts various formatted \item + " commands depending on the environment surrounding the cursor. If outside a + " list, then do nothing. + " + " (C) 2003 by Johannes Tanzler, <joh...@ao...> + " modifications by Srinath Avadhanula + function! Tex_InsertItem() + " Remember where we are. + let curpos = line('.').' | normal! |'.virtcol('.') + let curline = line('.') + + " Get one of the relevant environments before this line. + let env_line = search( + \ '^\s*\\begin{\(itemize\|enumerate\|theindex\|description\|labeling\|thebibliography\)', 'bW') + " If none found then return. + if env_line == 0 + return '' + endif + " We are at the beginning of the environment. + let env = matchstr(getline(env_line), '{\zs.\{-}\ze}') + call Tex_Debug("env = ".env, "bra") + " search forward for the end of the environment. If the end of the + " environment occurs before where we originally were, means we were + " outside (after the end) of the environment. In this do nothing. + let env_line_end = search('^\s*\\end{'.env) + + call Tex_Debug("env_line = ".env_line.', env_line_end = '.env_line_end, "bra") + if env_line_end < curline + exec curpos + return '' + endif + + exec curpos + + if env =~ '\(itemize\|enumerate\|theindex\)' + return IMAP_PutTextWithMovement("\\item ") + elseif env =~ '\(description\|labeling\)' + if env =~ 'labeling' | let add = '\sfb ' | else | let add = '' | endif + return IMAP_PutTextWithMovement("\\item[" . add . "<+label+>] <++>") + elseif env =~ '\(thebibliography\)' + return IMAP_PutTextWithMovement("\\item[<+biblabel+>]{<+bibkey+>}<++>") + else + return "" + endif + endfunction + + " }}} " vim:fdm=marker |
From: <sri...@us...> - 2003-10-09 21:53:50
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv373 Modified Files: multicompile.vim compiler.vim Log Message: New: If we use :TTarget to set the target format to ps, then initially, errors from the compilation to dvi would not be shown. Now if there are errors in the latex compilation step, we stop the process and show the errors. Index: multicompile.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/multicompile.vim,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** multicompile.vim 3 Oct 2003 10:35:28 -0000 1.8 --- multicompile.vim 9 Oct 2003 21:53:47 -0000 1.9 *************** *** 45,53 **** " If there are errors in any latex compilation step, immediately ! " return. ! let _a = @a ! redir @a | silent! clist | redir END ! let errlist = @a ! let @a = _a if errlist =~ '\d\+\s\f\+:\d\+\serror' --- 45,52 ---- " If there are errors in any latex compilation step, immediately ! " return. For now, do not bother with warnings because those might go ! " away after compiling again or after bibtex is run etc. ! let errlist = Tex_GetErrorList() ! call Tex_Debug("errors = [".errlist."]", "err") if errlist =~ '\d\+\s\f\+:\d\+\serror' Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** compiler.vim 9 Oct 2003 20:59:13 -0000 1.49 --- compiler.vim 9 Oct 2003 21:53:47 -0000 1.50 *************** *** 221,224 **** --- 221,229 ---- endif + " If there are any errors, then break from the rest of the steps + if Tex_GetErrorList() != '' + break + endif + let i = i + 1 endwhile |
From: <sri...@us...> - 2003-10-09 21:52:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv32751 Modified Files: main.vim Log Message: New: A function Tex_GetErrorList which extracts the errors from vim's :clist Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** main.vim 29 Sep 2003 02:23:49 -0000 1.50 --- main.vim 9 Oct 2003 21:52:06 -0000 1.51 *************** *** 634,637 **** --- 634,648 ---- " }}} + " Tex_GetErrorList: returns vim's clist {{{ + " Description: returns the contents of the error list available via the :clist + " command. + function! Tex_GetErrorList() + let _a = @a + redir @a | silent! clist | redir END + let errlist = @a + let @a = _a + + return errlist + endfunction " }}} " source texproject.vim before other files |
From: <sri...@us...> - 2003-10-09 21:21:05
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv26461 Modified Files: latex-suite.xml Log Message: New: brief description of Tex_GotoError Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** latex-suite.xml 3 Oct 2003 07:43:14 -0000 1.21 --- latex-suite.xml 9 Oct 2003 21:21:01 -0000 1.22 *************** *** 1693,1706 **** </para> <para> ! If you are using commonly used LaTeX tools, then you should be all set as ! soon as you download and install latex-suite. In order to compile a LaTeX ! file, simply press <literal>\ll</literal> while editing the file. This ! runs latex on the current file and displays the errors in a ! |quickfix-window|. You can then scroll through the errors and press ! <literal><enter></literal> to be taken to the location of the ! corresponding error. Along with the errors being listed in the quickfix ! window, the corresponding log file is also opened in |preview| mode beneath ! the quickfix window. It is scrolled automatically to keep in sync with the ! error being viewed in the quickfix window. </para> <para> --- 1693,1709 ---- </para> <para> ! If you are using commonly used LaTeX tools, then you should be all set ! as soon as you download and install latex-suite. In order to compile a ! LaTeX file, simply press <literal>\ll</literal> while editing the file. ! This runs latex on the current file and displays the errors in a ! |quickfix-window| below the file being edited. You can then scroll ! through the errors and press <literal><enter></literal> to be ! taken to the location of the corresponding error. Along with the errors ! being listed in the quickfix window, the corresponding log file is also ! opened in |preview| mode beneath the quickfix window. It is scrolled ! automatically to keep in sync with the error being viewed in the ! quickfix window. You will be automatically taken to the location of the ! first error/warning unless you set the <link ! linkend="Tex_GotoError">g:Tex_GotoError</link> variable to 0. </para> <para> *************** *** 3510,3513 **** --- 3513,3534 ---- setting. </para> + </para> + </section> + <section id="Tex_GotoError"> + <title>g:Tex_GotoError</title> + <informaltable frame="all"> + <tgroup cols="2"> + <tbody> + <row><entry>Type</entry><entry>boolean</entry></row> + <row><entry>Default Value</entry> + <entry><literal>1</literal></entry></row> + </tbody> + </tgroup> + </informaltable> + <para> + If set to 1, then pressing <literal>\ll</literal> will take you to + the location of the first warning/error, otherwise you will remain in + the original location but the errors/warnings will be listed in the + preview window. </para> </section> |
From: <sri...@us...> - 2003-10-09 20:59:17
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22390 Modified Files: compiler.vim Log Message: Fix: The original way of just doing "wincmd k" when going back to the file being edited (when g:Tex_GotoError is unset) does not look robust enough because we could be editing two buffers in split windows. Remember the window from where we issue the RunLaTeX() function. Bug: Sometimes, the preview window is not properly synced. Why: Used 'l.'.linenum as the regexp which catches things like "l 20" as well as "l.20". Fix: Use 'l\.'.linenum as the regexp. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** compiler.vim 28 Sep 2003 22:54:04 -0000 1.48 --- compiler.vim 9 Oct 2003 20:59:13 -0000 1.49 *************** *** 174,178 **** call GotoErrorLocation(mfnlog) else ! wincmd k endif endif --- 174,178 ---- call GotoErrorLocation(mfnlog) else ! exec s:origwinnum.' wincmd w' endif endif *************** *** 224,227 **** --- 224,228 ---- endwhile + let s:origwinnum = winnr() call Tex_SetupErrorWindow() *************** *** 461,465 **** let searchpat = escape(matchstr(getline('.'), '|\d\+ warning|\s*\zs.*'), '\ ') else ! let searchpat = 'l.'.linenum endif --- 462,466 ---- let searchpat = escape(matchstr(getline('.'), '|\d\+ warning|\s*\zs.*'), '\ ') else ! let searchpat = 'l\.'.linenum endif |
From: <mi...@us...> - 2003-10-03 10:35:35
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11214 Modified Files: multicompile.vim texrc Log Message: Big BibTeX databases and some packages supporting BibTeX need bibtex8 or switches. Use new g:Tex_BibtexFlavor variable, default of course just bibtex Index: multicompile.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/multicompile.vim,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** multicompile.vim 3 Sep 2003 07:19:13 -0000 1.7 --- multicompile.vim 3 Oct 2003 10:35:28 -0000 1.8 *************** *** 1,4 **** " ============================================================================ ! " File: latexm.vim " Author: Srinath Avadhanula " Created: Sat Jul 05 03:00 PM 2003 --- 1,4 ---- " ============================================================================ ! " File: multicompile.vim " Author: Srinath Avadhanula " Created: Sat Jul 05 03:00 PM 2003 *************** *** 78,83 **** let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running bibtex..." ! let temp_mp = &mp | let &mp='bibtex' exec 'silent! make '.mainFileName_root let &mp = temp_mp --- 78,83 ---- let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running '" . g:Tex_BibtexFlavor . "' ..." ! let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor exec 'silent! make '.mainFileName_root let &mp = temp_mp Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** texrc 3 Oct 2003 07:43:24 -0000 1.39 --- texrc 3 Oct 2003 10:35:28 -0000 1.40 *************** *** 114,118 **** TexLet g:Tex_CompileRule_html = 'latex2html $*.tex' ! TexLet g:Tex_CompileRule_bib = 'bibtex $*' " Set Tex_UseMakefile to 0 if you want to ignore the presence of a Makefile --- 114,118 ---- TexLet g:Tex_CompileRule_html = 'latex2html $*.tex' ! TexLet g:Tex_CompileRule_bib = g:Tex_BibtexFlavor . ' $*' " Set Tex_UseMakefile to 0 if you want to ignore the presence of a Makefile *************** *** 179,182 **** --- 179,185 ---- " specifies the current latex flavor. TexLet g:Tex_Flavor = 'latex' + + " specifies the BibTeX flavor and if necessary options. + TexLet g:Tex_BibtexFlavor = 'bibtex' " By default the program described by g:Tex_Flavor above is called with the |
From: <mi...@us...> - 2003-10-03 07:43:29
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv9857 Modified Files: texrc Log Message: Fix bug with TexLet g:Tex_GotoError == Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** texrc 28 Sep 2003 22:54:04 -0000 1.38 --- texrc 3 Oct 2003 07:43:24 -0000 1.39 *************** *** 191,195 **** " If disabled (set to 0) LaTeX-Suite doesn't go immediately to warnings or " errors after compilation ! TexLet g:Tex_GotoError == 1 " }}} --- 191,195 ---- " If disabled (set to 0) LaTeX-Suite doesn't go immediately to warnings or " errors after compilation ! TexLet g:Tex_GotoError = 1 " }}} |
From: <mi...@us...> - 2003-10-03 07:43:21
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv9774 Modified Files: latex-suite.txt latex-suite.xml Log Message: update docs Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** latex-suite.txt 13 Sep 2003 07:54:17 -0000 1.43 --- latex-suite.txt 3 Oct 2003 07:43:14 -0000 1.44 *************** *** 141,148 **** provides a way to insert custom templates at the beginning of the current file. ! When latex-suite first starts up, it scans the ! $VIM/ftplugin/latex-suite/templates/ directory and creates menu items based on ! the files found there. When you select a template from this menu, the file will ! be read in above the first line of the current file. A template file can utlilize placeholders for initializing the cursor position --- 141,149 ---- provides a way to insert custom templates at the beginning of the current file. ! When latex-suite first starts up, it scans ! ftplugin/latex-suite/templates/ directories in 'runtimepath' and creates ! menu items based on the files found there. When you select a template ! from this menu, the file will be read in above the first line of the ! current file. A template file can utlilize placeholders for initializing the cursor position *************** *** 151,158 **** by using vim expressions. ! You can place your own templates in the $VIM/ftplugin/latex-suite/templates/ ! directory in order for them to be available via the menu. Unless Latex-Suite releases a template with the same name, these files should not get over-written ! when you install a new release over an existing one. NOTE: Templates are also accessible for non-gui users with the command --- 152,162 ---- by using vim expressions. ! You can place your own templates in the $HOME/.vim/ftplugin/latex-suite/templates/ ! directory in order for them to be available via the menu. Unless LaTeX-Suite releases a template with the same name, these files should not get over-written ! when you install a new release over an existing one. If name of your ! template is equal to default template from LaTeX-Suite it will ! overshadow default template and from menu (and :TTemplate command) will ! be read local template. NOTE: Templates are also accessible for non-gui users with the command *************** *** 165,169 **** ================================================================================ ! Latex-Suite Macros *ls_3* *ls_a_be* *latex-macros* --- 169,173 ---- ================================================================================ ! LaTeX-Suite Macros *ls_3* *ls_a_be* *latex-macros* *************** *** 746,760 **** *custom-macros-menu* ! This functionality available via the TeX-Suite.Macros menu, provides a way of ! inserting customized macros into the current file via the menu. ! When latex-suite starts up, it scans the $VIM/ftplugin/latex-suite/macros/ ! directory and creates a menu from the files found there. Each file is considered ! as a single macro. You can place your own macros in this directory, using ! placeholders [|ls_a_ef|] if wanted. When you choose a macro from the menu, the corresponding file is read into the current buffer after the current cursor position. In non-gui mode, you can use ! the |TMacro| command instead of choosing from the menu. This command takes the macro file name as an argument. When called without arguments (preferred usage), then a list of avaiable macro files is displayed and the user is prompted to --- 750,764 ---- *custom-macros-menu* ! This functionality available via the TeX-Suite > Macros menu, provides ! a way of inserting customized macros into the current file via the menu. ! When LaTeX-Suite starts up, it scans the ftplugin/latex-suite/macros/ ! directories in runtimepath and creates a menu from the files found ! there. Each file is considered as a single macro. You can place your own ! macros in local directory, using placeholders [|ls_a_ef|] if wanted. When you choose a macro from the menu, the corresponding file is read into the current buffer after the current cursor position. In non-gui mode, you can use ! the |:TMacro| command instead of choosing from the menu. This command takes the macro file name as an argument. When called without arguments (preferred usage), then a list of avaiable macro files is displayed and the user is prompted to *************** *** 766,774 **** {New} Creates a new (unnamed) buffer in the latex-suite/macros/ directory. Use the command :TexMacroNew in non-gui mode. ! {Edit} Opens up the corresponding macro file for editing. Use :TexMacroEdit ! in non-gui mode. {Delete} Deletes the corresponding macro. Use the prefixed numbers for fast ! navigation of menus. Use :TexMacroDelete in non-gui mode. ! {Redraw} Rescans the macros/ directory and refreshes the macros list. -------------------------------------------------------------------------------- --- 770,783 ---- {New} Creates a new (unnamed) buffer in the latex-suite/macros/ directory. Use the command :TexMacroNew in non-gui mode. ! {Edit} Opens up the corresponding macro file for editing. Use ! |:TexMacroEdit| in non-gui mode. When you try to edit ! {macro} not from local directory LaTeX-Suite will copy it to ! your local directory with suffix "-local". If local copy ! already exists LaTeX-Suite prompt for overwriting it. {Delete} Deletes the corresponding macro. Use the prefixed numbers for fast ! navigation of menus. Use |:TexMacroDelete| in non-gui mode. ! When you choose to delete {macro} which is not in your local ! directory LaTeX-Suite will refuse to delete it. ! {Redraw} Rescans the macros/ directories and refreshes the macros list. -------------------------------------------------------------------------------- *************** *** 1947,1961 **** When used without any arguments lists all available macros defined in ! latex-suite/macros/ directory and prompts you to choose one of them. With one ! argument |:read| this macro under cursor position. With more than one argument ! it will not work :) ! TMacroEdit [{macro}] *ls_9_2_2* *ls_a_cm* *TMacroEdit* ! Splits window for editing {macro}. When used without any arguments lists all ! available macros defined in latex-suite/macros/ directory and prompt you to ! choose one of them. --- 1956,1977 ---- When used without any arguments lists all available macros defined in ! runtime ftplugin/latex-suite/macros/ directories and prompts you to ! choose one of them. With one argument |:read| this macro under cursor ! position. With more than one argument it will not work :) ! In Vim >= 6.2 works completion of names of macros (see 'wildmenu', ! 'wildmode' for more about command-line completion). ! :TMacroEdit [{macro}] *ls_9_2_2* *ls_a_cm* *TMacroEdit* ! Splits window for editing {macro}. When used without any arguments lists ! all available macros defined in runtime ftplugin/latex-suite/macros/ ! directories and prompt you to choose one of them. ! When you try to edit {macro} not from local directory LaTeX-Suite ! will copy it to your local directory with suffix "-local". If local copy ! already exists LaTeX-Suite prompt for overwriting it. ! In Vim >= 6.2 works completion of names of macros (see 'wildmenu', ! 'wildmode' for more about command-line completion). *************** *** 1970,1976 **** *TMacroDelete* ! Delets {macro} from latex-suite/macros/ directory. When used without any ! arguments lists all available macros defined in latex-suite/macros/ directory ! and prompt you to choose one of them. --- 1986,1996 ---- *TMacroDelete* ! Delets {macro} from your local ftplugin/latex-suite/macros/ directory. ! When used without any arguments lists all available macros defined in ! latex-suite/macros/ directory and prompt you to choose one of them. ! When you choose to delete {macro} which is not in your local directory ! LaTeX-Suite will refuse to delete it. ! In Vim >= 6.2 works completion of names of macros (see 'wildmenu', ! 'wildmode' for more about command-line completion) *************** *** 2016,2019 **** --- 2036,2041 ---- argument :0|read| {template} file. With more than one argument it will not work :) + In Vim >= 6.2 works completion of names of macros (see 'wildmenu', + 'wildmode' for more about command-line completion) *************** *** 2052,2056 **** ! TSectionAdvanced *ls_9_2_10* *ls_a_cu* *TSectionAdvanced* --- 2074,2078 ---- ! :TSectionAdvanced *ls_9_2_10* *ls_a_cu* *TSectionAdvanced* *************** *** 2061,2065 **** ! TLook *ls_9_2_11* *ls_a_cv* *TLook* Accepts one argument. Will look through .tex files in directory of edited file --- 2083,2087 ---- ! :TLook *ls_9_2_11* *ls_a_cv* *TLook* Accepts one argument. Will look through .tex files in directory of edited file *************** *** 2070,2074 **** ! TLookBib *ls_9_2_12* *ls_a_cw* *TLookBib* --- 2092,2096 ---- ! :TLookBib *ls_9_2_12* *ls_a_cw* *TLookBib* *************** *** 2083,2087 **** ! TLookAll *ls_9_2_13* *ls_a_cx* *TLookAll* --- 2105,2109 ---- ! :TLookAll *ls_9_2_13* *ls_a_cx* *TLookAll* *************** *** 2093,2097 **** ! TPartComp *ls_9_2_14* *ls_a_cy* *TPartComp* --- 2115,2119 ---- ! :TPartComp *ls_9_2_14* *ls_a_cy* *TPartComp* *************** *** 2101,2105 **** ! TPartView *ls_9_2_15* *ls_a_cz* *TPartView* --- 2123,2127 ---- ! :TPartView *ls_9_2_15* *ls_a_cz* *TPartView* *************** *** 2107,2111 **** ! Tshortcuts [{arg}] *ls_9_2_16* *ls_a_cA* *Tshortcuts* --- 2129,2133 ---- ! :Tshortcuts [{arg}] *ls_9_2_16* *ls_a_cA* *Tshortcuts* Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** latex-suite.xml 13 Sep 2003 07:54:17 -0000 1.20 --- latex-suite.xml 3 Oct 2003 07:43:14 -0000 1.21 *************** *** 866,871 **** <entry>{Edit}</entry> <entry> ! Opens up the corresponding macro file for ! editing. Use :TexMacroEdit in non-gui mode. </entry> </row> --- 866,874 ---- <entry>{Edit}</entry> <entry> ! Opens up the corresponding macro file for editing. Use ! |:TexMacroEdit| in non-gui mode. When you try to edit {macro} ! not from local directory LaTeX-Suite will copy it to your local ! directory with suffix "-local". If local copy already exists ! LaTeX-Suite prompt for overwriting it. </entry> </row> *************** *** 873,879 **** <entry>{Delete}</entry> <entry> ! Deletes the corresponding macro. Use the ! prefixed numbers for fast navigation of menus. ! Use :TexMacroDelete in non-gui mode. </entry> </row> --- 876,883 ---- <entry>{Delete}</entry> <entry> ! Deletes the corresponding macro. Use the prefixed numbers for ! fast navigation of menus. Use |:TexMacroDelete| in non-gui mode. ! When you choose to delete {macro} which is not in your local ! directory LaTeX-Suite will refuse to delete it. </entry> </row> *************** *** 881,886 **** <entry>{Redraw}</entry> <entry> ! Rescans the macros/ directory and refreshes the ! macros list. </entry> </row> --- 885,889 ---- <entry>{Redraw}</entry> <entry> ! Rescans the macros/ directories and refreshes the macros list. </entry> </row> *************** *** 2444,2460 **** <title>:TMacro [{macro}]</title> <para> ! When used without any arguments lists all available macros defined ! in latex-suite/macros/ directory and prompts you to choose one of ! them. With one argument |:read| this macro under cursor position. ! With more than one argument it will not work :) </para> </section> <section id="TMacroEdit"> ! <title>TMacroEdit [{macro}]</title> <para> ! Splits window for editing {macro}. ! When used without any arguments lists all available macros ! defined in latex-suite/macros/ directory and prompt you to ! choose one of them. </para> </section> --- 2447,2469 ---- <title>:TMacro [{macro}]</title> <para> ! When used without any arguments lists all available macros defined ! in runtime ftplugin/latex-suite/macros/ directories and prompts you ! to choose one of them. With one argument |:read| this macro under ! cursor position. With more than one argument it will not work :) In ! Vim >= 6.2 works completion of names of macros (see 'wildmenu', ! 'wildmode' for more about command-line completion). </para> </section> <section id="TMacroEdit"> ! <title>:TMacroEdit [{macro}]</title> <para> ! Splits window for editing {macro}. When used without any arguments ! lists all available macros defined in runtime ! ftplugin/latex-suite/macros/ directories and prompt you to choose ! one of them. When you try to edit {macro} not from local directory ! LaTeX-Suite will copy it to your local directory with suffix ! "-local". If local copy already exists LaTeX-Suite prompt for ! overwriting it. In Vim >= 6.2 works completion of names of macros ! (see 'wildmenu', 'wildmode' for more about command-line completion). </para> </section> *************** *** 2469,2476 **** <title>:TMacroDelete [{macro}]</title> <para> ! Delets {macro} from latex-suite/macros/ directory. ! When used without any arguments lists all available macros ! defined in latex-suite/macros/ directory and prompt you to ! choose one of them. </para> </section> --- 2478,2488 ---- <title>:TMacroDelete [{macro}]</title> <para> ! Delets {macro} from your local ftplugin/latex-suite/macros/ ! directory. When used without any arguments lists all available ! macros defined in latex-suite/macros/ directory and prompt you to ! choose one of them. When you choose to delete {macro} which is not ! in your local directory LaTeX-Suite will refuse to delete it. In ! Vim >= 6.2 works completion of names of macros (see 'wildmenu', ! 'wildmode' for more about command-line completion) </para> </section> *************** *** 2523,2526 **** --- 2535,2540 ---- With one argument :0|read| {template} file. With more than one argument it will not work :) + In Vim >= 6.2 works completion of names of macros (see 'wildmenu', + 'wildmode' for more about command-line completion) </para> </section> *************** *** 2611,2615 **** </section> <section id="TSectionAdvanced"> ! <title>TSectionAdvanced</title> <para> Accepts the same arguments as |TSection| but leads to a couple --- 2625,2629 ---- </section> <section id="TSectionAdvanced"> ! <title>:TSectionAdvanced</title> <para> Accepts the same arguments as |TSection| but leads to a couple *************** *** 2621,2625 **** </section> <section id="TLook"> ! <title>TLook</title> <para> Accepts one argument. Will look through .tex files in --- 2635,2639 ---- </section> <section id="TLook"> ! <title>:TLook</title> <para> Accepts one argument. Will look through .tex files in *************** *** 2632,2636 **** </section> <section id="TLookBib"> ! <title>TLookBib</title> <para> Accepts one argument. Will look through .bib files in --- 2646,2650 ---- </section> <section id="TLookBib"> ! <title>:TLookBib</title> <para> Accepts one argument. Will look through .bib files in *************** *** 2647,2651 **** </section> <section id="TLookAll"> ! <title>TLookAll</title> <para> Accepts one argument. Will look through all files in directory --- 2661,2665 ---- </section> <section id="TLookAll"> ! <title>:TLookAll</title> <para> Accepts one argument. Will look through all files in directory *************** *** 2653,2662 **** to enclose argument in "". <cr> takes you to location. Other keys work as described in |latex-viewer|. ! Note: TLookuses :grep command and is using 'grepprg'. Its regular expressions can be different from those of Vim. </para> </section> <section id="TPartComp"> ! <title>TPartComp</title> <para> No argument allowed but accepts range in all formats. Define --- 2667,2676 ---- to enclose argument in "". <cr> takes you to location. Other keys work as described in |latex-viewer|. ! Note: TLook uses :grep command and is using 'grepprg'. Its regular expressions can be different from those of Vim. </para> </section> <section id="TPartComp"> ! <title>:TPartComp</title> <para> No argument allowed but accepts range in all formats. Define *************** *** 2666,2670 **** </section> <section id="TPartView"> ! <title>TPartView</title> <para> Show last compiled fragment. All rules of viewing apply but --- 2680,2684 ---- </section> <section id="TPartView"> ! <title>:TPartView</title> <para> Show last compiled fragment. All rules of viewing apply but *************** *** 2673,2677 **** </section> <section id="Tshortcuts"> ! <title>Tshortcuts [{arg}]</title> <para> Show shortcuts in terminal (not using menu). Without {arg} --- 2687,2691 ---- </section> <section id="Tshortcuts"> ! <title>:Tshortcuts [{arg}]</title> <para> Show shortcuts in terminal (not using menu). Without {arg} |
From: <mi...@us...> - 2003-09-29 06:04:46
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv2971 Modified Files: custommacros.vim Log Message: More polishing and catching bugs with combination of opening, writing, overwriting, etc. of local and system macros. Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** custommacros.vim 29 Sep 2003 02:23:49 -0000 1.17 --- custommacros.vim 29 Sep 2003 03:55:24 -0000 1.18 *************** *** 109,114 **** endif - " Remove only if filename is in local directory if !filereadable(s:macrodirpath.filename) call confirm('This file is not in your local directory: '.filename."\n". \ 'It will not be deleted.' , '&OK', 1) --- 109,114 ---- endif if !filereadable(s:macrodirpath.filename) + " When file is not in local directory decline to remove it. call confirm('This file is not in your local directory: '.filename."\n". \ 'It will not be deleted.' , '&OK', 1) *************** *** 133,138 **** --- 133,142 ---- if filereadable(s:macrodirpath.filename) + " If file exists in local directory open it. exe 'split '.s:macrodirpath.filename else + " But if file doesn't exist in local dir it probably is in user + " restricted area. Instead opening try to copy it to local dir. + " Pity VimL doesn't have mkdir() function :) let ch = confirm("You are trying to edit file which is probably read-only.\n". \ "It will be copied to your local LaTeX-Suite macros directory\n". *************** *** 141,147 **** \ "Do you agree?", "&Yes\n&No", 1) if ch == 1 ! new ! exe '0read '.Tex_FindInRtp(filename, 'macros') ! exe 'write '.s:macrodirpath.filename.'-local' endif --- 145,174 ---- \ "Do you agree?", "&Yes\n&No", 1) if ch == 1 ! " But there is possibility we already created local modification. ! " Check it and offer opening this file. ! if filereadable(s:macrodirpath.filename.'-local') ! let ch = confirm('Local version of '.filename." already exists.\n". ! \ 'Do you want to open it or overwrite with original version?', ! \ "&Open\nOver&write\n&Cancel", 1) ! if ch == 1 ! exe 'split '.s:macrodirpath.filename.'-local' ! elseif ch == 2 ! new ! exe '0read '.Tex_FindInRtp(filename, 'macros') ! " This is possible macro was edited before, wipe it out. ! if bufexists(s:macrodirpath.filename.'-local') ! exe 'bwipe '.s:macrodirpath.filename.'-local' ! endif ! exe 'write! '.s:macrodirpath.filename.'-local' ! else ! return ! endif ! else ! " If file doesn't exist, open new file, read in system macro and ! " save it in local macro dir with suffix -local ! new ! exe '0read '.Tex_FindInRtp(filename, 'macros') ! exe 'write '.s:macrodirpath.filename.'-local' ! endif endif |
From: <mi...@us...> - 2003-09-29 02:24:04
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22094 Modified Files: main.vim packages.vim templates.vim custommacros.vim ChangeLog Log Message: s/FileInRtp/FindInRtp/ and small optimizations in templates.vim and custommacros.vim Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** main.vim 28 Sep 2003 22:53:38 -0000 1.49 --- main.vim 29 Sep 2003 02:23:49 -0000 1.50 *************** *** 584,593 **** endfunction " }}} " }}} ! " Tex_FileInRtp: check if file exists in &rtp {{{ " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the " rest of returned names. This guarantees that sourced file is " from $HOME. Drawback: doesn't respect special after directory. " If first argument == '' return list of files separated with \n ! function! Tex_FileInRtp(filename, directory) " We need different behavior for each special subdirectory: if a:directory == 'packages' --- 584,593 ---- endfunction " }}} " }}} ! " Tex_FindInRtp: check if file exists in &rtp {{{ " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the " rest of returned names. This guarantees that sourced file is " from $HOME. Drawback: doesn't respect special after directory. " If first argument == '' return list of files separated with \n ! function! Tex_FindInRtp(filename, directory) " We need different behavior for each special subdirectory: if a:directory == 'packages' Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** packages.vim 28 Sep 2003 22:53:38 -0000 1.40 --- packages.vim 29 Sep 2003 02:23:49 -0000 1.41 *************** *** 33,37 **** function! Tex_CompletePackageName(A,P,L) " Get name of packages from all runtimepath directories ! let packnames = Tex_FileInRtp('', 'packages') let packnames = substitute(packnames, '^,', '', 'e') " Separate names with \n not , --- 33,37 ---- function! Tex_CompletePackageName(A,P,L) " Get name of packages from all runtimepath directories ! let packnames = Tex_FindInRtp('', 'packages') let packnames = substitute(packnames, '^,', '', 'e') " Separate names with \n not , *************** *** 61,68 **** " function! Tex_pack_check(package) ! " Use Tex_FileInRtp() function to get first name from packages list in all " rtp directories conforming with latex-suite directories hierarchy " Store names in variables to process functions only once. ! let packname = Tex_FileInRtp(a:package, 'packages') if packname != '' exe 'runtime! ftplugin/latex-suite/packages/' . a:package --- 61,68 ---- " function! Tex_pack_check(package) ! " Use Tex_FindInRtp() function to get first name from packages list in all " rtp directories conforming with latex-suite directories hierarchy " Store names in variables to process functions only once. ! let packname = Tex_FindInRtp(a:package, 'packages') if packname != '' exe 'runtime! ftplugin/latex-suite/packages/' . a:package *************** *** 75,79 **** endif " Return full list of dictionaries (separated with ,) for package in &rtp ! let dictname = Tex_FileInRtp(a:package, 'dictionaries') if dictname != '' exe 'setlocal dict+=' . dictname --- 75,79 ---- endif " Return full list of dictionaries (separated with ,) for package in &rtp ! let dictname = Tex_FindInRtp(a:package, 'dictionaries') if dictname != '' exe 'setlocal dict+=' . dictname *************** *** 92,102 **** " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui_running") && Tex_FileInRtp(a:package, 'packages') != '' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.'-sep'.a:package.'-' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Options' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Commands' endif ! if Tex_FileInRtp(a:package, 'dictionaries') != '' ! exe 'setlocal dict-='.Tex_FileInRtp(a:package, 'dictionaries') endif endfunction --- 92,102 ---- " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui_running") && Tex_FindInRtp(a:package, 'packages') != '' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.'-sep'.a:package.'-' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Options' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Commands' endif ! if Tex_FindInRtp(a:package, 'dictionaries') != '' ! exe 'setlocal dict-='.Tex_FindInRtp(a:package, 'dictionaries') endif endfunction *************** *** 258,266 **** function! Tex_pack_one(...) if a:0 == 0 || (a:0 > 0 && a:1 == '') let packname = Tex_ChooseFromPrompt( \ "Choose a package: \n" . ! \ Tex_CreatePrompt(Tex_FileInRtp('','packages'), "3", ",") . \ "\nEnter number or filename :", ! \ Tex_FileInRtp('','packages'), "\n") if packname != '' return Tex_pack_one(packname) --- 258,267 ---- function! Tex_pack_one(...) if a:0 == 0 || (a:0 > 0 && a:1 == '') + let packlist = Tex_FindInRtp('', 'packages') let packname = Tex_ChooseFromPrompt( \ "Choose a package: \n" . ! \ Tex_CreatePrompt(packlist, '3', ',') . \ "\nEnter number or filename :", ! \ packlist, ',') if packname != '' return Tex_pack_one(packname) *************** *** 275,279 **** while omega <= a:0 let packname = a:{omega} ! if Tex_FileInRtp(packname, 'packages') != '' call Tex_pack_check(packname) if exists('g:TeX_package_option_'.packname) --- 276,280 ---- while omega <= a:0 let packname = a:{omega} ! if Tex_FindInRtp(packname, 'packages') != '' call Tex_pack_check(packname) if exists('g:TeX_package_option_'.packname) Index: templates.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/templates.vim,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** templates.vim 28 Sep 2003 22:53:38 -0000 1.12 --- templates.vim 29 Sep 2003 02:23:49 -0000 1.13 *************** *** 16,20 **** " SetTemplateMenu: sets up the menu for templates {{{ function! <SID>SetTemplateMenu() ! let flist = Tex_FileInRtp('', 'templates') let i = 1 while 1 --- 16,20 ---- " SetTemplateMenu: sets up the menu for templates {{{ function! <SID>SetTemplateMenu() ! let flist = Tex_FindInRtp('', 'templates') let i = 1 while 1 *************** *** 41,52 **** let filename = a:1.'.*' else let filename = \ Tex_ChooseFromPrompt("Choose a template file:\n" . ! \ Tex_CreatePrompt(Tex_FileInRtp('', 'templates'), 2, ",") . \ "\nEnter number or name of file :", ! \ Tex_FileInRtp('', 'templates'), ",") endif ! let fname = Tex_FileInRtp(filename, 'templates') silent! exe "0read ".fname " The first line of the file contains the specifications of what the --- 41,53 ---- let filename = a:1.'.*' else + let filelist = Tex_FindInRtp('', 'templates') let filename = \ Tex_ChooseFromPrompt("Choose a template file:\n" . ! \ Tex_CreatePrompt(filelist, 2, ',') . \ "\nEnter number or name of file :", ! \ filelist, ',') endif ! let fname = Tex_FindInRtp(filename, 'templates') silent! exe "0read ".fname " The first line of the file contains the specifications of what the *************** *** 104,108 **** " }}} ! if v:version >= 602 com! -complete=custom,Tex_CompleteTemplateName -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>) --- 105,109 ---- " }}} ! " Command definitions {{{ if v:version >= 602 com! -complete=custom,Tex_CompleteTemplateName -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>) *************** *** 113,122 **** " Tex_CompleteTemplateName: for completing names in TTemplate command {{{ ! " Description: get list of template names with Tex_FileInRtp(), remove full path " and return list of names separated with newlines. " function! Tex_CompleteTemplateName(A,P,L) " Get name of macros from all runtimepath directories ! let tmplnames = Tex_FileInRtp('', 'templates') " Separate names with \n not , let tmplnames = substitute(tmplnames,',','\n','g') --- 114,123 ---- " Tex_CompleteTemplateName: for completing names in TTemplate command {{{ ! " Description: get list of template names with Tex_FindInRtp(), remove full path " and return list of names separated with newlines. " function! Tex_CompleteTemplateName(A,P,L) " Get name of macros from all runtimepath directories ! let tmplnames = Tex_FindInRtp('', 'templates') " Separate names with \n not , let tmplnames = substitute(tmplnames,',','\n','g') *************** *** 133,136 **** --- 134,139 ---- endif + + " }}} " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** custommacros.vim 29 Sep 2003 00:43:44 -0000 1.16 --- custommacros.vim 29 Sep 2003 02:23:49 -0000 1.17 *************** *** 26,30 **** " SetCustomMacrosMenu: sets up the menu for Macros {{{ function! <SID>SetCustomMacrosMenu() ! let flist = Tex_FileInRtp('', 'macros') exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call <SID>NewMacro("FFFromMMMenu")<CR>' exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' --- 26,30 ---- " SetCustomMacrosMenu: sets up the menu for Macros {{{ function! <SID>SetCustomMacrosMenu() ! let flist = Tex_FindInRtp('', 'macros') exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call <SID>NewMacro("FFFromMMMenu")<CR>' exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' *************** *** 69,73 **** return endif ! elseif Tex_FileInRtp(newmacroname, 'macros') != '' " If macro with this name already exists, prompt for another name. exe "echomsg 'Macro ".newmacroname." already exists. Try another name.'" --- 69,73 ---- return endif ! elseif Tex_FindInRtp(newmacroname, 'macros') != '' " If macro with this name already exists, prompt for another name. exe "echomsg 'Macro ".newmacroname." already exists. Try another name.'" *************** *** 92,96 **** " " Description: function! s:ChooseMacro(ask) ! let filelist = Tex_FileInRtp('', 'macros') let filename = Tex_ChooseFromPrompt( \ a:ask."\n" . --- 92,96 ---- " " Description: function! s:ChooseMacro(ask) ! let filelist = Tex_FindInRtp('', 'macros') let filename = Tex_ChooseFromPrompt( \ a:ask."\n" . *************** *** 142,146 **** if ch == 1 new ! exe '0read '.Tex_FileInRtp(filename, 'macros') exe 'write '.s:macrodirpath.filename.'-local' endif --- 142,146 ---- if ch == 1 new ! exe '0read '.Tex_FindInRtp(filename, 'macros') exe 'write '.s:macrodirpath.filename.'-local' endif *************** *** 158,162 **** let filename = a:1 else ! let filelist = Tex_FileInRtp('', 'macros') let filename = \ Tex_ChooseFromPrompt("Choose a macro file:\n" . --- 158,162 ---- let filename = a:1 else ! let filelist = Tex_FindInRtp('', 'macros') let filename = \ Tex_ChooseFromPrompt("Choose a macro file:\n" . *************** *** 166,170 **** endif ! let fname = Tex_FileInRtp(filename, 'macros') let markerString = '<---- Latex Suite End Macro ---->' --- 166,170 ---- endif ! let fname = Tex_FindInRtp(filename, 'macros') let markerString = '<---- Latex Suite End Macro ---->' *************** *** 205,214 **** " Tex_CompleteMacroName: for completing names in TMacro... commands {{{ ! " Description: get list of macro names with Tex_FileInRtp(), remove full path " and return list of names separated with newlines. " function! Tex_CompleteMacroName(A,P,L) " Get name of macros from all runtimepath directories ! let macronames = Tex_FileInRtp('', 'macros') " Separate names with \n not , let macronames = substitute(macronames,',','\n','g') --- 205,214 ---- " Tex_CompleteMacroName: for completing names in TMacro... commands {{{ ! " Description: get list of macro names with Tex_FindInRtp(), remove full path " and return list of names separated with newlines. " function! Tex_CompleteMacroName(A,P,L) " Get name of macros from all runtimepath directories ! let macronames = Tex_FindInRtp('', 'macros') " Separate names with \n not , let macronames = substitute(macronames,',','\n','g') Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ChangeLog 28 Sep 2003 22:54:07 -0000 1.11 --- ChangeLog 29 Sep 2003 02:23:49 -0000 1.12 *************** *** 13,17 **** Make jumping to warning/error configurable. (Preben Randhol, MM) * packages.vim, templates.vim, custommacros.vim, main.vim: ! New function, Tex_FileInRtp makes possible to use files from system-wide directories and local. Appropriate changes in pluginable features - packages, directories, templates, macros. (MM) --- 13,17 ---- Make jumping to warning/error configurable. (Preben Randhol, MM) * packages.vim, templates.vim, custommacros.vim, main.vim: ! New function, Tex_FindInRtp makes possible to use files from system-wide directories and local. Appropriate changes in pluginable features - packages, directories, templates, macros. (MM) |
From: <mi...@us...> - 2003-09-29 01:19:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv19792 Modified Files: texrc main.vim Log Message: Add to main.vim definitions of tags for ctags and for texrc additional settings allowing for disabling this feature partially. Tags like TABLE OF CONTENTS, FRONTMATTER etc. allows for seeing structure of file. But I will not cry for it if somebody removes it :) Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** texrc 7 Sep 2003 17:23:33 -0000 1.36 --- texrc 28 Sep 2003 22:52:45 -0000 1.37 *************** *** 538,539 **** --- 538,554 ---- " }}} " ============================================================================== + " Taglist: Support for taglist.vim {{{ + " + " LaTeX-Suite offers now support for taglist.vim, the most popular Vim + " interface for ctags. You should use ctags version >= 5.0 and taglist >= 3.0. + TexLet g:Tex_TaglistSupport = 1 + + " This option turns on definition of tags for LaTeX. + " NOTE: In taglist window you may see duplicate entries for the same tag. It + " means some definitions are repeated somewhere else. You can turn off + " internal definitions or remove external (read ctags description + " where). + TexLet g:Tex_InternalTagsDefinitions = 1 + + " }}} + " ============================================================================== Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** main.vim 13 Sep 2003 07:03:13 -0000 1.47 --- main.vim 28 Sep 2003 22:52:45 -0000 1.48 *************** *** 651,658 **** " }}} ! " This variable has to be set before sourcing package files to add names of " commands to completion ! let g:Tex_completion_explorer = ',' ! " Mappings defined in package files will overwrite all other --- 651,692 ---- " }}} ! " ============================================================================== ! " Settings for taglist.vim plugin ! " ============================================================================== ! if exists("g:Tex_TaglistSupport") && g:Tex_TaglistSupport == 1 ! if !exists("g:tlist_tex_settings") ! let g:tlist_tex_settings = 'tex;s:section;c:chapter;l:label;r:ref' ! endif ! ! if exists("Tlist_Ctags_Cmd") ! let s:tex_ctags = Tlist_Ctags_Cmd ! else ! let s:tex_ctags = 'ctags' " Configurable in texrc? ! endif ! ! if exists("g:Tex_InternalTagsDefinitions") && g:Tex_InternalTagsDefinitions == 1 ! let Tlist_Ctags_Cmd = s:tex_ctags ." --langdef=tex --langmap=tex:.tex.ltx.latex" ! \.' --regex-tex="/\\\\begin{abstract}/Abstract/s,abstract/"' ! \.' --regex-tex="/\\\\part[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,part/"' ! \.' --regex-tex="/\\\\chapter[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,chapter/"' ! \.' --regex-tex="/\\\\section[ \t]*\*?\{[ \t]*([^}]*)\}/\1/s,section/"' ! \.' --regex-tex="/\\\\subsection[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subsection/"' ! \.' --regex-tex="/\\\\subsubsection[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subsubsection/"' ! \.' --regex-tex="/\\\\paragraph[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,paragraph/"' ! \.' --regex-tex="/\\\\subparagraph[ \t]*\*?\{[ \t]*([^}]*)\}/+ \1/s,subparagraph/"' ! \.' --regex-tex="/\\\\begin{thebibliography}/BIBLIOGRAPHY/s,thebibliography/"' ! \.' --regex-tex="/\\\\tableofcontents/TABLE OF CONTENTS/s,tableofcontents/"' ! \.' --regex-tex="/\\\\frontmatter/FRONTMATTER/s,frontmatter/"' ! \.' --regex-tex="/\\\\mainmatter/MAINMATTER/s,mainmatter/"' ! \.' --regex-tex="/\\\\backmatter/BACKMATTER/s,backmatter/"' ! \.' --regex-tex="/\\\\appendix/APPENDIX/s,appendix/"' ! \.' --regex-tex="/\\\\label[ \t]*\*?\{[ \t]*([^}]*)\}/\1/l,label/"' ! \.' --regex-tex="/\\\\ref[ \t]*\*?\{[ \t]*([^}]*)\}/\1/r,ref/"' ! endif ! endif ! " commands to completion ! let g:Tex_completion_explorer = ',' ! " Mappings defined in package files will overwrite all other |
From: <mi...@us...> - 2003-09-29 01:16:52
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv6287 Modified Files: custommacros.vim Log Message: Polishing if custommacros.vim system-local implementation. No need for "Argument required" error: Handling of menu call (fake argument FFFromMMMenu). Better handling of possible error situations - prompt for name. Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** custommacros.vim 28 Sep 2003 22:53:38 -0000 1.15 --- custommacros.vim 29 Sep 2003 00:43:44 -0000 1.16 *************** *** 19,23 **** let s:macrodirpath = $HOME."/vimfiles/ftplugin/latex-suite/macros/" else ! let s:macrodirpath = $VIMRUNTIME."/ftplugin/latex-suite/macros/" endif endif --- 19,23 ---- let s:macrodirpath = $HOME."/vimfiles/ftplugin/latex-suite/macros/" else ! let s:macrodirpath = $VIM."/vimfiles/ftplugin/latex-suite/macros/" endif endif *************** *** 27,31 **** function! <SID>SetCustomMacrosMenu() let flist = Tex_FileInRtp('', 'macros') ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call NewMacro()<CR>' exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' --- 27,31 ---- function! <SID>SetCustomMacrosMenu() let flist = Tex_FileInRtp('', 'macros') ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call <SID>NewMacro("FFFromMMMenu")<CR>' exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' *************** *** 50,59 **** " }}} " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro(newmacro) ! if Tex_FileInRtp(a:newmacro, 'macros') != '' ! exe "echomsg 'Macro with name '".a:newmacro."' exists. Try another one.'" ! return endif ! exe 'split '.s:macrodirpath.a:newmacro setlocal filetype=tex endfunction --- 50,81 ---- " }}} " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro(...) ! " Allow for calling :TMacroNew without argument or from menu and prompt ! " for name. ! if a:0 > 0 ! let newmacroname = a:1 ! else ! let newmacroname = input("Name of new macro: ") ! if newmacroname == '' ! return ! endif endif ! ! if newmacroname == "FFFromMMMenu" ! " Check if NewMacro was called from menu and prompt for insert macro ! " name ! let newmacroname = input("Name of new macro: ") ! if newmacroname == '' ! return ! endif ! elseif Tex_FileInRtp(newmacroname, 'macros') != '' ! " If macro with this name already exists, prompt for another name. ! exe "echomsg 'Macro ".newmacroname." already exists. Try another name.'" ! let newmacroname = input("Name of new macro: ") ! if newmacroname == '' ! return ! endif ! endif ! exe 'split '.s:macrodirpath.newmacroname setlocal filetype=tex endfunction *************** *** 171,175 **** " }}} " commands for macros {{{ ! com! -nargs=1 TMacroNew :call <SID>NewMacro(<f-args>) " This macros had to have 2 versions: --- 193,197 ---- " }}} " commands for macros {{{ ! com! -nargs=? TMacroNew :call <SID>NewMacro(<f-args>) " This macros had to have 2 versions: |
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv19775 Modified Files: accents acromake afterpage alltt amsmath amsthm amsxtra arabic array babel bar bm bophook boxedminipage caption2 cases ccaption changebar chapterbib cite color comma deleq drftcite dropping enumerate eqlist eqparbox everyshi exmpl flafter float floatflt fn2end footmisc geometry german graphicx graphpap harpoon hhline histogram hyperref ifthen inputenc letterspace lineno longtable lscape manyfoot moreverb moreverbatim multibox multicol newalg ngerman numprint oldstyle outliner overcite parallel plain plates polski psgo schedule SIunits textfit times tipa ulem url verbatim version Log Message: Add plugin header (|write-plugin|) to package files. Index: accents =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/accents,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** accents 5 Jan 2003 21:47:08 -0000 1.2 --- accents 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("accents_package_file") + finish + endif + let accents_package_file = 1 + let g:TeX_package_option_accents = \ 'nonscript,' Index: acromake =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/acromake,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** acromake 5 Jan 2003 21:47:08 -0000 1.1 --- acromake 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("acromake_package_file") + finish + endif + let acromake_package_file = 1 + let g:TeX_package_option_acromake = '' Index: afterpage =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/afterpage,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** afterpage 5 Jan 2003 21:47:08 -0000 1.1 --- afterpage 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("afterpage_package_file") + finish + endif + let afterpage_package_file = 1 + let g:TeX_package_option_afterpage = '' Index: alltt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/alltt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** alltt 5 Jan 2003 21:47:08 -0000 1.1 --- alltt 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("alltt_package_file") + finish + endif + let alltt_package_file = 1 + let g:TeX_package_option_alltt = '' Index: amsmath =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/amsmath,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** amsmath 28 May 2003 09:13:59 -0000 1.7 --- amsmath 28 Sep 2003 22:52:37 -0000 1.8 *************** *** 1,2 **** --- 1,7 ---- + if exists("amsmath_package_file") + finish + endif + let amsmath_package_file = 1 + let g:TeX_package_option_amsmath = \ 'centertags,' Index: amsthm =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/amsthm,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** amsthm 5 Jan 2003 21:47:08 -0000 1.2 --- amsthm 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("amsthm_package_file") + finish + endif + let amsthm_package_file = 1 + let TeX_package_option_amsthm = '' Index: amsxtra =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/amsxtra,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** amsxtra 5 Jan 2003 21:47:08 -0000 1.2 --- amsxtra 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("amsxtra_package_file") + finish + endif + let amsxtra_package_file = 1 + let g:TeX_package_option_amsxtra = '' Index: arabic =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/arabic,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** arabic 5 Jan 2003 21:47:08 -0000 1.1 --- arabic 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("arabic_package_file") + finish + endif + let arabic_package_file = 1 + let g:TeX_package_option_arabic = '' Index: array =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/array,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** array 16 Mar 2003 18:16:45 -0000 1.1 --- array 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("array_package_file") + finish + endif + let array_package_file = 1 + let g:TeX_package_option_array = '' Index: babel =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/babel,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** babel 18 Jan 2003 18:36:43 -0000 1.2 --- babel 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("babel_package_file") + finish + endif + let babel_package_file = 1 + " This package sets some language specific options. " Since it needs to find out which options the user used with the babel Index: bar =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/bar,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bar 5 Jan 2003 21:47:08 -0000 1.4 --- bar 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("bar_package_file") + finish + endif + let bar_package_file = 1 + let g:TeX_package_option_bar = '' Index: bm =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/bm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bm 16 Mar 2003 18:16:45 -0000 1.1 --- bm 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("bm_package_file") + finish + endif + let bm_package_file = 1 + let g:TeX_package_option_bm = '' Index: bophook =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/bophook,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bophook 16 Mar 2003 18:16:45 -0000 1.1 --- bophook 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("bophook_package_file") + finish + endif + let bophook_package_file = 1 + let g:TeX_package_option_bophook = '' Index: boxedminipage =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/boxedminipage,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** boxedminipage 5 Jan 2003 21:47:08 -0000 1.1 --- boxedminipage 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("boxedminipage_package_file") + finish + endif + let boxedminipage_package_file = 1 + let g:TeX_package_option_boxedminipage = '' Index: caption2 =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/caption2,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** caption2 5 Jan 2003 21:47:08 -0000 1.2 --- caption2 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("caption2_package_file") + finish + endif + let caption2_package_file = 1 + let g:TeX_package_option_caption2 = \ 'scriptsize,' Index: cases =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/cases,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cases 16 Mar 2003 18:16:45 -0000 1.1 --- cases 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("cases_package_file") + finish + endif + let cases_package_file = 1 + let g:TeX_package_option_cases = '' Index: ccaption =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/ccaption,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ccaption 16 Mar 2003 18:16:45 -0000 1.1 --- ccaption 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("ccaption_package_file") + finish + endif + let ccaption_package_file = 1 + let g:TeX_package_option_ccaption = '' Index: changebar =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/changebar,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** changebar 5 Jan 2003 21:47:08 -0000 1.4 --- changebar 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("changebar_package_file") + finish + endif + let changebar_package_file = 1 + let g:TeX_package_option_changebar = \ 'DVItoLN03,' Index: chapterbib =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/chapterbib,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** chapterbib 5 Jan 2003 21:47:08 -0000 1.3 --- chapterbib 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("chapterbib_package_file") + finish + endif + let chapterbib_package_file = 1 + let g:TeX_package_option_chapterbib = \ 'sectionbib,' Index: cite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/cite,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** cite 7 Jan 2003 22:36:53 -0000 1.5 --- cite 28 Sep 2003 22:52:37 -0000 1.6 *************** *** 1,2 **** --- 1,7 ---- + if exists("cite_package_file") + finish + endif + let cite_package_file = 1 + let g:TeX_package_option_cite = \ 'verbose,' Index: color =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/color,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** color 5 Jan 2003 21:47:08 -0000 1.3 --- color 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("color_package_file") + finish + endif + let color_package_file = 1 + let g:TeX_package_option_color = \ 'monochrome,' Index: comma =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/comma,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** comma 16 Mar 2003 18:16:45 -0000 1.1 --- comma 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("comma_package_file") + finish + endif + let comma_package_file = 1 + let g:TeX_package_option_comma = '' Index: deleq =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/deleq,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** deleq 9 Jan 2003 11:50:30 -0000 1.1 --- deleq 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("deleq_package_file") + finish + endif + let deleq_package_file = 1 + let g:TeX_package_option_deleq = '' Index: drftcite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/drftcite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** drftcite 7 Jan 2003 22:36:50 -0000 1.4 --- drftcite 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("drftcite_package_file") + finish + endif + let drftcite_package_file = 1 + let g:TeX_package_option_drftcite = \ 'verbose,' Index: dropping =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/dropping,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** dropping 16 Mar 2003 18:16:45 -0000 1.1 --- dropping 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("dropping_package_file") + finish + endif + let dropping_package_file = 1 + let g:TeX_package_option_dropping = '' Index: enumerate =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/enumerate,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** enumerate 16 Mar 2003 18:16:45 -0000 1.1 --- enumerate 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("enumerate_package_file") + finish + endif + let enumerate_package_file = 1 + let g:TeX_package_option_enumerate = '' Index: eqlist =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/eqlist,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** eqlist 5 Jan 2003 21:47:08 -0000 1.2 --- eqlist 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("eqlist_package_file") + finish + endif + let eqlist_package_file = 1 + let g:TeX_package_option_eqlist = '' Index: eqparbox =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/eqparbox,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** eqparbox 5 Jan 2003 21:47:08 -0000 1.4 --- eqparbox 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("eqparbox_package_file") + finish + endif + let eqparbox_package_file = 1 + let g:TeX_package_option_eqparbox = '' Index: everyshi =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/everyshi,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** everyshi 16 Mar 2003 18:16:45 -0000 1.1 --- everyshi 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("everyshi_package_file") + finish + endif + let everyshi_package_file = 1 + let g:TeX_package_option_everyshi = '' Index: exmpl =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/exmpl,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** exmpl 30 Apr 2002 00:03:23 -0000 1.1.1.1 --- exmpl 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("exmpl_package_file") + finish + endif + let exmpl_package_file = 1 + " Author: Mikolaj Machowski " Date: 10.04.2002 Index: flafter =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/flafter,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** flafter 17 Mar 2003 12:46:51 -0000 1.1 --- flafter 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("flafter_package_file") + finish + endif + let flafter_package_file = 1 + let g:TeX_package_option_flafter = '' Index: float =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/float,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** float 5 Jan 2003 21:47:08 -0000 1.3 --- float 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("float_package_file") + finish + endif + let float_package_file = 1 + let g:TeX_package_option_float = '' Index: floatflt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/floatflt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** floatflt 17 Mar 2003 12:46:52 -0000 1.1 --- floatflt 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("floatflt_package_file") + finish + endif + let floatflt_package_file = 1 + let g:TeX_package_option_floatflt = 'rflt,lflt,vflt' Index: fn2end =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/fn2end,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fn2end 17 Mar 2003 12:46:52 -0000 1.1 --- fn2end 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("fn2end_package_file") + finish + endif + let fn2end_package_file = 1 + let g:TeX_package_option_fn2end = '' Index: footmisc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/footmisc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** footmisc 5 Jan 2003 21:47:08 -0000 1.2 --- footmisc 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("footmisc_package_file") + finish + endif + let footmisc_package_file = 1 + let g:TeX_package_option_footmisc = \ 'bottom,' Index: geometry =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/geometry,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** geometry 5 Jan 2003 21:47:08 -0000 1.4 --- geometry 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("geometry_package_file") + finish + endif + let geometry_package_file = 1 + let g:TeX_package_option_geometry = \ 'sbr:Boolean,' Index: german =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/german,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** german 15 Jan 2003 16:24:56 -0000 1.2 --- german 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("german_package_file") + finish + endif + let german_package_file = 1 + " For now just define the smart quotes. let b:Tex_SmartQuoteOpen = '"`' Index: graphicx =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/graphicx,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** graphicx 21 Jan 2003 22:23:08 -0000 1.4 --- graphicx 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("graphicx_package_file") + finish + endif + let graphicx_package_file = 1 + let g:TeX_package_option_graphicx = \ 'sbr:Drivers,' Index: graphpap =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/graphpap,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** graphpap 17 Mar 2003 12:46:52 -0000 1.1 --- graphpap 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("graphpap_package_file") + finish + endif + let graphpap_package_file = 1 + let g:TeX_package_option_graphpap = '' Index: harpoon =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/harpoon,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** harpoon 5 Jan 2003 21:47:08 -0000 1.3 --- harpoon 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("harpoon_package_file") + finish + endif + let harpoon_package_file = 1 + let g:TeX_package_option_harpoon = '' Index: hhline =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/hhline,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** hhline 5 Jan 2003 21:47:08 -0000 1.3 --- hhline 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("hhline_package_file") + finish + endif + let hhline_package_file = 1 + let g:TeX_package_option_hhline = '' Index: histogram =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/histogram,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** histogram 9 Jan 2003 11:50:30 -0000 1.1 --- histogram 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("histogram_package_file") + finish + endif + let histogram_package_file = 1 + let g:TeX_package_option_histogram = '' Index: hyperref =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/hyperref,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** hyperref 5 Jan 2003 21:47:08 -0000 1.4 --- hyperref 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("hyperref_package_file") + finish + endif + let hyperref_package_file = 1 + let g:TeX_package_option_hyperref = \ '4=,' Index: ifthen =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/ifthen,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ifthen 5 Jan 2003 21:47:08 -0000 1.4 --- ifthen 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("ifthen_package_file") + finish + endif + let ifthen_package_file = 1 + let g:TeX_package_option_ifthen = '' Index: inputenc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/inputenc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** inputenc 5 Jan 2003 21:47:08 -0000 1.3 --- inputenc 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("inputenc_package_file") + finish + endif + let inputenc_package_file = 1 + let g:TeX_package_option_inputenc = \ 'ascii,' Index: letterspace =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/letterspace,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** letterspace 17 Mar 2003 12:46:52 -0000 1.1 --- letterspace 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("letterspace_package_file") + finish + endif + let letterspace_package_file = 1 + let g:TeX_package_option_letterspace = '' Index: lineno =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/lineno,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lineno 5 Jan 2003 21:47:08 -0000 1.3 --- lineno 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("lineno_package_file") + finish + endif + let lineno_package_file = 1 + let g:TeX_package_option_lineno = \ 'left,' Index: longtable =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/longtable,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** longtable 5 Jan 2003 21:47:08 -0000 1.4 --- longtable 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("longtable_package_file") + finish + endif + let longtable_package_file = 1 + let g:TeX_package_option_longtable = \ 'errorshow,' Index: lscape =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/lscape,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lscape 17 Mar 2003 12:46:52 -0000 1.1 --- lscape 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("lscape_package_file") + finish + endif + let lscape_package_file = 1 + let g:TeX_package_option_lscape = '' Index: manyfoot =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/manyfoot,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** manyfoot 14 Jan 2003 22:01:05 -0000 1.4 --- manyfoot 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("manyfoot_package_file") + finish + endif + let manyfoot_package_file = 1 + let g:TeX_package_option_manyfoot = 'para' Index: moreverb =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/moreverb,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** moreverb 11 Apr 2003 21:21:39 -0000 1.2 --- moreverb 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("moreverb_package_file") + finish + endif + let moreverb_package_file = 1 + let g:TeX_package_option_moreverb = '' Index: moreverbatim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/moreverbatim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** moreverbatim 5 Jan 2003 21:47:08 -0000 1.3 --- moreverbatim 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("moreverbatim_package_file") + finish + endif + let moreverbatim_package_file = 1 + let g:TeX_package_option_moreverbatim = '' Index: multibox =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/multibox,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** multibox 17 Mar 2003 12:46:52 -0000 1.1 --- multibox 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("multibox_package_file") + finish + endif + let multibox_package_file = 1 + let g:TeX_package_option_multibox = '' Index: multicol =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/multicol,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** multicol 5 Jan 2003 21:47:08 -0000 1.4 --- multicol 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("multicol_package_file") + finish + endif + let multicol_package_file = 1 + let g:TeX_package_option_multicol = '' Index: newalg =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/newalg,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** newalg 5 Jan 2003 21:47:08 -0000 1.4 --- newalg 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("newalg_package_file") + finish + endif + let newalg_package_file = 1 + let g:TeX_package_option_newalg = '' Index: ngerman =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/ngerman,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ngerman 16 Jan 2003 11:09:22 -0000 1.2 --- ngerman 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("ngerman_package_file") + finish + endif + let ngerman_package_file = 1 + " For now just define the smart quotes. let b:Tex_SmartQuoteOpen = '"`' Index: numprint =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/numprint,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** numprint 14 Jan 2003 22:00:22 -0000 1.2 --- numprint 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("numprint_package_file") + finish + endif + let numprint_package_file = 1 + let g:TeX_package_option_numprint = '' Index: oldstyle =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/oldstyle,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** oldstyle 14 Jan 2003 22:00:22 -0000 1.2 --- oldstyle 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("oldstyle_package_file") + finish + endif + let oldstyle_package_file = 1 + let g:TeX_package_option_oldstyle = '' Index: outliner =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/outliner,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** outliner 5 Jan 2003 21:47:08 -0000 1.2 --- outliner 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("outliner_package_file") + finish + endif + let outliner_package_file = 1 + let g:TeX_package_option_outliner = '' Index: overcite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/overcite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** overcite 7 Jan 2003 22:36:53 -0000 1.4 --- overcite 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("overcite_package_file") + finish + endif + let overcite_package_file = 1 + let g:TeX_package_option_overcite = \ 'verbose,' Index: parallel =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/parallel,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** parallel 5 Jan 2003 21:47:08 -0000 1.2 --- parallel 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("parallel_package_file") + finish + endif + let parallel_package_file = 1 + let g:TeX_package_option_parallel = '' Index: plain =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/plain,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** plain 17 Mar 2003 12:46:52 -0000 1.1 --- plain 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("plain_package_file") + finish + endif + let plain_package_file = 1 + let g:TeX_package_option_plain = '' Index: plates =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/plates,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** plates 9 Jan 2003 11:50:30 -0000 1.1 --- plates 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("plates_package_file") + finish + endif + let plates_package_file = 1 + let g:TeX_package_option_plates = 'figures,onefloatperpage,memoir' Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** polski 11 Jul 2003 22:47:23 -0000 1.13 --- polski 28 Sep 2003 22:52:37 -0000 1.14 *************** *** 20,23 **** --- 20,28 ---- " condition of leaving this notice and information about copyrights unchanged. + if exists("acromake_package_file") + finish + endif + let acromake_package_file = 1 + " --------8<------------- " Czesc odpowiedzialna za menu Index: psgo =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/psgo,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** psgo 7 Jan 2003 22:36:04 -0000 1.1 --- psgo 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("psgo_package_file") + finish + endif + let psgo_package_file = 1 + let g:TeX_package_option_psgo = '' Index: schedule =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/schedule,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** schedule 5 Jan 2003 21:47:08 -0000 1.4 --- schedule 28 Sep 2003 22:52:37 -0000 1.5 *************** *** 1,2 **** --- 1,7 ---- + if exists("schedule_package_file") + finish + endif + let schedule_package_file = 1 + let g:TeX_package_option_schedule = '' Index: SIunits =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/SIunits,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SIunits 5 Jan 2003 21:47:08 -0000 1.2 --- SIunits 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("SIunits_package_file") + finish + endif + let SIunits_package_file = 1 + let g:TeX_package_SIunits = \'nor:addprefix,'. Index: textfit =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/textfit,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** textfit 14 Jan 2003 22:01:23 -0000 1.1 --- textfit 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("textfit_package_file") + finish + endif + let textfit_package_file = 1 + let g:TeX_package_option_textfit = '' Index: times =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/times,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** times 16 Mar 2003 18:16:45 -0000 1.1 --- times 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("times_package_file") + finish + endif + let times_package_file = 1 + let g:TeX_package_option_times = '' Index: tipa =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/tipa,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tipa 5 Jan 2003 21:47:08 -0000 1.2 --- tipa 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("tipa_package_file") + finish + endif + let tipa_package_file = 1 + let g:TeX_package_option_tipa = \ 'T1,' Index: ulem =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/ulem,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ulem 5 Jan 2003 21:47:08 -0000 1.3 --- ulem 28 Sep 2003 22:52:37 -0000 1.4 *************** *** 1,2 **** --- 1,7 ---- + if exists("ulem_package_file") + finish + endif + let ulem_package_file = 1 + let g:TeX_package_option_ulem = \ 'normalem,' Index: url =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/url,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** url 5 Jan 2003 21:47:08 -0000 1.1 --- url 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("url_package_file") + finish + endif + let url_package_file = 1 + let g:TeX_package_option_url = \ 'hyphens,' Index: verbatim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/verbatim,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** verbatim 5 Jan 2003 21:47:08 -0000 1.1 --- verbatim 28 Sep 2003 22:52:37 -0000 1.2 *************** *** 1,2 **** --- 1,7 ---- + if exists("verbatim_package_file") + finish + endif + let verbatim_package_file = 1 + let g:TeX_package_option_verbatim = '' Index: version =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/version,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** version 14 Jan 2003 22:00:22 -0000 1.2 --- version 28 Sep 2003 22:52:37 -0000 1.3 *************** *** 1,2 **** --- 1,7 ---- + if exists("version_package_file") + finish + endif + let version_package_file = 1 + let g:TeX_package_option_version = '' |
From: <mi...@us...> - 2003-09-28 22:54:23
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20151 Modified Files: ChangeLog Log Message: update Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ChangeLog 11 Aug 2003 01:08:37 -0000 1.10 --- ChangeLog 28 Sep 2003 22:54:07 -0000 1.11 *************** *** 1,2 **** --- 1,23 ---- + 29 Sep 2003 + Changes + * custommacros.vim: + :TMacroNew command now requires name of new macro. It simplifies code + and make clearly visible where this buffer is. (MM) + Features + * custommacros.vim, templates.vim: + :TMacro family of commands and :TTemplate use custom completion. It + works only for Vim 6.2 or later. (MM) + * main.vim, texrc: + Support for taglist.vim plugin. (MM) + * compiler.vim, texrc: + Make jumping to warning/error configurable. (Preben Randhol, MM) + * packages.vim, templates.vim, custommacros.vim, main.vim: + New function, Tex_FileInRtp makes possible to use files from + system-wide directories and local. Appropriate changes in pluginable + features - packages, directories, templates, macros. (MM) + * packages directory: + Add to all package files preamble which allows to treat them like any + other plugin (order of sourcing and respectful treating). (MM) + After 6 Jun 2003 |
From: <mi...@us...> - 2003-09-28 22:54:19
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20112 Modified Files: compiler.vim texrc Log Message: Make configurable going to error/message after compilation. Default is going. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** compiler.vim 7 Sep 2003 17:22:09 -0000 1.47 --- compiler.vim 28 Sep 2003 22:54:04 -0000 1.48 *************** *** 171,175 **** " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! call GotoErrorLocation(mfnlog) endif --- 171,179 ---- " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! if exists('g:Tex_GotoError') && g:Tex_GotoError == 1 ! call GotoErrorLocation(mfnlog) ! else ! wincmd k ! endif endif Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** texrc 28 Sep 2003 22:52:45 -0000 1.37 --- texrc 28 Sep 2003 22:54:04 -0000 1.38 *************** *** 189,192 **** --- 189,196 ---- " TexLet g:Tex_CompilerFlags = '' + " If disabled (set to 0) LaTeX-Suite doesn't go immediately to warnings or + " errors after compilation + TexLet g:Tex_GotoError == 1 + " }}} " ============================================================================== |
From: <mi...@us...> - 2003-09-28 22:54:16
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20054 Modified Files: main.vim packages.vim templates.vim custommacros.vim Log Message: This is big commit. In main.vim new function Tex_FileInRtp. Now we can find files for packages, templates and macros in all runtime directories. Results are different for all types. For package files it source all of them in order according to &rtp. In this way package files are treated as normal Vim plugin files and behaviour for each package can be modified as for ftplugin files in .vim, /usr/.../vim, and .vim/after directories. For templates it allows to see files in system-wide and local directories. File in the local directory with the same name as in system dir will overshadow system template. For macros basic behaviour is the same but if someone will try to TMacroEdit system-wide macro file will be copied to local version of macros dir with suffix to name '-local'. Awkward but avoids situation when user removes local copy of system macro and still see this macro in menu (and in completion of : command). If user choose to remove file latexSuite refuse to remove system file. Completion of : commands relating for packages, templates, macros. Looks in all &rtp directories. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** main.vim 28 Sep 2003 22:52:45 -0000 1.48 --- main.vim 28 Sep 2003 22:53:38 -0000 1.49 *************** *** 584,587 **** --- 584,637 ---- endfunction " }}} " }}} + " Tex_FileInRtp: check if file exists in &rtp {{{ + " Description: Checks if file exists in globpath(&rtp, ...) and cuts off the + " rest of returned names. This guarantees that sourced file is + " from $HOME. Drawback: doesn't respect special after directory. + " If first argument == '' return list of files separated with \n + function! Tex_FileInRtp(filename, directory) + " We need different behavior for each special subdirectory: + if a:directory == 'packages' + if a:filename != '' + let filepath = globpath(&rtp, "ftplugin/latex-suite/packages/".a:filename) + "if filepath != '' && filepath =~ '\n' + "let filepath = substitute(filepath, '\n.*', '', '') + "endif + return filepath + else + " Return list of packages separated with , + let list = globpath(&rtp, "ftplugin/latex-suite/packages/*") + let list = substitute(list,'\n',',','g') + let list = substitute(list,'^\|,[^,]*/',',','g') + return list + endif + elseif a:directory == 'dictionaries' + if a:filename != '' + " Return list of dictionaries separated with , + let filepath = globpath(&rtp, "ftplugin/latex-suite/dictionaries/".a:filename) + let filepath = substitute(filepath, '\n', ',', 'g') + return filepath + endif + elseif a:directory =~ 'macros\|templates' + if a:filename != '' + " Return first file extracted from &rtp + let filepath = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/".a:filename) + if filepath != '' && filepath =~ '\n' + let filepath = substitute(filepath, '\n.*', '', '') + endif + return filepath + else + " Return list of macros/templates separated with , + let list = globpath(&rtp, "ftplugin/latex-suite/".a:directory."/*") + let list = substitute(list,'\n',',','g') + let list = substitute(list,'^\|,[^,]*/',',','g') + let list = substitute(list,'^,', '', '') + let list = substitute(list,'\.tex', '', 'ge') + return list + endif + endif + + endfunction + + " }}} " source texproject.vim before other files *************** *** 654,657 **** --- 704,708 ---- " Settings for taglist.vim plugin " ============================================================================== + " Sets Tlist_Ctags_Cmd for taglist.vim and regexps for ctags {{{ if exists("g:Tex_TaglistSupport") && g:Tex_TaglistSupport == 1 if !exists("g:tlist_tex_settings") *************** *** 686,689 **** --- 737,742 ---- endif + " }}} + " commands to completion let g:Tex_completion_explorer = ',' Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** packages.vim 4 Aug 2003 20:18:53 -0000 1.39 --- packages.vim 28 Sep 2003 22:53:38 -0000 1.40 *************** *** 32,38 **** " function! Tex_CompletePackageName(A,P,L) ! let packnames = globpath(s:path.'/packages','*') ! let packnames = substitute(packnames,'\n',',','g') ! let packnames = substitute(packnames,'^\|,[^,]*/',',','g') let packnames = substitute(packnames,',','\n','g') return packnames --- 32,39 ---- " function! Tex_CompletePackageName(A,P,L) ! " Get name of packages from all runtimepath directories ! let packnames = Tex_FileInRtp('', 'packages') ! let packnames = substitute(packnames, '^,', '', 'e') ! " Separate names with \n not , let packnames = substitute(packnames,',','\n','g') return packnames *************** *** 60,65 **** " function! Tex_pack_check(package) ! if filereadable(s:path.'/packages/'.a:package) ! exe 'source ' . s:path . '/packages/' . a:package if has("gui_running") call Tex_pack(a:package) --- 61,70 ---- " function! Tex_pack_check(package) ! " Use Tex_FileInRtp() function to get first name from packages list in all ! " rtp directories conforming with latex-suite directories hierarchy ! " Store names in variables to process functions only once. ! let packname = Tex_FileInRtp(a:package, 'packages') ! if packname != '' ! exe 'runtime! ftplugin/latex-suite/packages/' . a:package if has("gui_running") call Tex_pack(a:package) *************** *** 69,75 **** endif endif ! if filereadable(s:path.'/dictionaries/'.a:package) ! exe 'setlocal dict+='.s:path.'/dictionaries/'.a:package ! if filereadable(s:path.'/dictionaries/'.a:package) && g:Tex_package_supported !~ a:package let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif --- 74,82 ---- endif endif ! " Return full list of dictionaries (separated with ,) for package in &rtp ! let dictname = Tex_FileInRtp(a:package, 'dictionaries') ! if dictname != '' ! exe 'setlocal dict+=' . dictname ! if g:Tex_package_supported !~ a:package let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif *************** *** 85,99 **** " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui_running") && filereadable(s:path.'/packages/'.a:package) exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.'-sep'.a:package.'-' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Options' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Commands' endif ! if filereadable(s:path.'/dictionaries/'.a:package) ! exe 'setlocal dict-='.s:path.'/dictionaries/'.a:package endif endfunction " }}} " Tex_pack_updateall: updates the TeX-Packages menu {{{ " Description: --- 92,108 ---- " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui_running") && Tex_FileInRtp(a:package, 'packages') != '' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.'-sep'.a:package.'-' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Options' exe 'silent! aunmenu '.g:Tex_PackagesMenuLocation.a:package.'\ Commands' endif ! if Tex_FileInRtp(a:package, 'dictionaries') != '' ! exe 'setlocal dict-='.Tex_FileInRtp(a:package, 'dictionaries') endif endfunction " }}} + " This function should go to main.vim for reuse with templates and macros. + " I keep it here because want to do it in onefile patch. " Tex_pack_updateall: updates the TeX-Packages menu {{{ " Description: *************** *** 249,260 **** function! Tex_pack_one(...) if a:0 == 0 || (a:0 > 0 && a:1 == '') - let pwd = getcwd() - exe 'cd '.s:path.'/packages' let packname = Tex_ChooseFromPrompt( \ "Choose a package: \n" . ! \ Tex_CreatePrompt(glob('*'), 3, "\n") . \ "\nEnter number or filename :", ! \ glob('*'), "\n") ! exe 'cd '.pwd if packname != '' return Tex_pack_one(packname) --- 258,266 ---- function! Tex_pack_one(...) if a:0 == 0 || (a:0 > 0 && a:1 == '') let packname = Tex_ChooseFromPrompt( \ "Choose a package: \n" . ! \ Tex_CreatePrompt(Tex_FileInRtp('','packages'), "3", ",") . \ "\nEnter number or filename :", ! \ Tex_FileInRtp('','packages'), "\n") if packname != '' return Tex_pack_one(packname) *************** *** 269,273 **** while omega <= a:0 let packname = a:{omega} ! if filereadable(s:path.'/packages/'.packname) call Tex_pack_check(packname) if exists('g:TeX_package_option_'.packname) --- 275,279 ---- while omega <= a:0 let packname = a:{omega} ! if Tex_FileInRtp(packname, 'packages') != '' call Tex_pack_check(packname) if exists('g:TeX_package_option_'.packname) *************** *** 453,462 **** function! Tex_pack_supp_menu() ! let pwd = getcwd() ! exec 'cd '.s:path.'/packages' ! let suplist = glob("*") ! exec 'cd '.pwd ! ! let suplist = substitute(suplist, "\n", ',', 'g').',' call Tex_MakeSubmenu(suplist, g:Tex_PackagesMenuLocation.'Supported.', --- 459,467 ---- function! Tex_pack_supp_menu() ! " Get list of packages in all rtp directories. ! " TODO: sort it and get rid of duplicate entries. ! let suplist = globpath(&rtp, "ftplugin/latex-suite/packages/*") ! let suplist = substitute(suplist,'\n',',','g') ! let suplist = substitute(suplist,'^\|,[^,]*/',',','g')."," call Tex_MakeSubmenu(suplist, g:Tex_PackagesMenuLocation.'Supported.', Index: templates.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/templates.vim,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** templates.vim 21 Jan 2003 22:15:40 -0000 1.11 --- templates.vim 28 Sep 2003 22:53:38 -0000 1.12 *************** *** 3,8 **** --- 3,10 ---- " Author: Gergely Kontra " (minor modifications by Srinath Avadhanula) + " (plus other modifications by Mikolaj Machowski) " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST + " CVS: $Id$ " " Description: functions for handling templates in latex-suite/templates *************** *** 14,31 **** " SetTemplateMenu: sets up the menu for templates {{{ function! <SID>SetTemplateMenu() ! let flist = glob(s:path."/templates/*") let i = 1 while 1 ! let fname = Tex_Strntok(flist, "\n", i) if fname == '' break endif ! let fnameshort = fnamemodify(fname, ':p:t:r') ! if fnameshort == '' ! let i = i + 1 ! continue ! endif ! exe "amenu ".g:Tex_TemplatesMenuLocation."&".i.":<Tab>".fnameshort." ". ! \":call <SID>ReadTemplate('".fnameshort."')<CR>". \":call <SID>ProcessTemplate()<CR>:0<CR>". \"i<C-r>=IMAP_Jumpfunc('', 1)<CR>" --- 16,28 ---- " SetTemplateMenu: sets up the menu for templates {{{ function! <SID>SetTemplateMenu() ! let flist = Tex_FileInRtp('', 'templates') let i = 1 while 1 ! let fname = Tex_Strntok(flist, ',', i) if fname == '' break endif ! exe "amenu ".g:Tex_TemplatesMenuLocation."&".i.":<Tab>".fname." ". ! \":call <SID>ReadTemplate('".fname."')<CR>". \":call <SID>ProcessTemplate()<CR>:0<CR>". \"i<C-r>=IMAP_Jumpfunc('', 1)<CR>" *************** *** 44,58 **** let filename = a:1.'.*' else - let pwd = getcwd() - exe 'cd '.s:path.'/templates' let filename = \ Tex_ChooseFromPrompt("Choose a template file:\n" . ! \ Tex_CreatePrompt(glob('*'), 2, "\n") . \ "\nEnter number or name of file :", ! \ glob('*'), "\n") ! exe 'cd '.pwd endif ! let fname = glob(s:path."/templates/".filename) silent! exe "0read ".fname " The first line of the file contains the specifications of what the --- 41,52 ---- let filename = a:1.'.*' else let filename = \ Tex_ChooseFromPrompt("Choose a template file:\n" . ! \ Tex_CreatePrompt(Tex_FileInRtp('', 'templates'), 2, ",") . \ "\nEnter number or name of file :", ! \ Tex_FileInRtp('', 'templates'), ",") endif ! let fname = Tex_FileInRtp(filename, 'templates') silent! exe "0read ".fname " The first line of the file contains the specifications of what the *************** *** 111,119 **** " }}} ! com! -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>) ! \| :call <SID>ProcessTemplate() ! \| :0 ! \| :exec "normal! i\<C-r>=IMAP_Jumpfunc('', 1)\<CR>" ! \| :startinsert " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 --- 105,136 ---- " }}} ! if v:version >= 602 ! com! -complete=custom,Tex_CompleteTemplateName -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>) ! \| :call <SID>ProcessTemplate() ! \| :0 ! \| :exec "normal! i\<C-r>=IMAP_Jumpfunc('', 1)\<CR>" ! \| :startinsert ! ! " Tex_CompleteTemplateName: for completing names in TTemplate command {{{ ! " Description: get list of template names with Tex_FileInRtp(), remove full path ! " and return list of names separated with newlines. ! " ! function! Tex_CompleteTemplateName(A,P,L) ! " Get name of macros from all runtimepath directories ! let tmplnames = Tex_FileInRtp('', 'templates') ! " Separate names with \n not , ! let tmplnames = substitute(tmplnames,',','\n','g') ! return tmplnames ! endfunction ! " }}} ! ! else ! com! -nargs=? TTemplate :call <SID>ReadTemplate(<f-args>) ! \| :call <SID>ProcessTemplate() ! \| :0 ! \| :exec "normal! i\<C-r>=IMAP_Jumpfunc('', 1)\<CR>" ! \| :startinsert ! ! endif " vim:fdm=marker:ff=unix:noet:ts=4:sw=4 Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** custommacros.vim 19 Jul 2003 07:05:47 -0000 1.14 --- custommacros.vim 28 Sep 2003 22:53:38 -0000 1.15 *************** *** 4,7 **** --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST + " CVS: $Id$ " " Description: functions for processing custom macros in the *************** *** 11,31 **** let s:path = expand('<sfile>:p:h') " SetCustomMacrosMenu: sets up the menu for Macros {{{ function! <SID>SetCustomMacrosMenu() ! let flist = glob(s:path."/macros/*") ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call <SID>NewMacro()<CR>' ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call <SID>RedrawMacro()<CR>' let i = 1 while 1 ! let fname = Tex_Strntok(flist, "\n", i) if fname == '' break endif ! let fnameshort = fnamemodify(fname, ':p:t:r') ! exe "amenu ".g:Tex_MacrosMenuLocation."&Delete.&".i.":<tab>".fnameshort." :call <SID>DeleteMacro('".fnameshort."')<CR>" ! exe "amenu ".g:Tex_MacrosMenuLocation."&Edit.&".i.":<tab>".fnameshort." :call <SID>EditMacro('".fnameshort."')<CR>" ! exe "imenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." <C-r>=<SID>ReadMacro('".fnameshort."')<CR>" ! exe "nmenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fnameshort." i<C-r>=<SID>ReadMacro('".fnameshort."')<CR>" let i = i + 1 endwhile --- 12,43 ---- let s:path = expand('<sfile>:p:h') + " Set path to macros dir dependent on OS {{{ + if has("unix") || has("macunix") + let s:macrodirpath = $HOME."/.vim/ftplugin/latex-suite/macros/" + elseif has("win32") + if exists("$HOME") + let s:macrodirpath = $HOME."/vimfiles/ftplugin/latex-suite/macros/" + else + let s:macrodirpath = $VIMRUNTIME."/ftplugin/latex-suite/macros/" + endif + endif + + " }}} " SetCustomMacrosMenu: sets up the menu for Macros {{{ function! <SID>SetCustomMacrosMenu() ! let flist = Tex_FileInRtp('', 'macros') ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&New :call NewMacro()<CR>' ! exe 'amenu '.g:Tex_MacrosMenuLocation.'&Redraw :call RedrawMacro()<CR>' let i = 1 while 1 ! let fname = Tex_Strntok(flist, ',', i) if fname == '' break endif ! exe "amenu ".g:Tex_MacrosMenuLocation."&Delete.&".i.":<tab>".fname." :call <SID>DeleteMacro('".fname."')<CR>" ! exe "amenu ".g:Tex_MacrosMenuLocation."&Edit.&".i.":<tab>".fname." :call <SID>EditMacro('".fname."')<CR>" ! exe "imenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fname." <C-r>=<SID>ReadMacro('".fname."')<CR>" ! exe "nmenu ".g:Tex_MacrosMenuLocation."&".i.":<tab>".fname." i<C-r>=<SID>ReadMacro('".fname."')<CR>" let i = i + 1 endwhile *************** *** 38,50 **** " }}} " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro() ! exe "cd ".s:path."/macros" ! new ! set filetype=tex endfunction " }}} " RedrawMacro: refreshes macro menu {{{ ! function! <SID>RedrawMacro() aunmenu TeX-Suite.Macros call <SID>SetCustomMacrosMenu() --- 50,65 ---- " }}} " NewMacro: opens new file in macros directory {{{ ! function! <SID>NewMacro(newmacro) ! if Tex_FileInRtp(a:newmacro, 'macros') != '' ! exe "echomsg 'Macro with name '".a:newmacro."' exists. Try another one.'" ! return ! endif ! exe 'split '.s:macrodirpath.a:newmacro ! setlocal filetype=tex endfunction " }}} " RedrawMacro: refreshes macro menu {{{ ! function! RedrawMacro() aunmenu TeX-Suite.Macros call <SID>SetCustomMacrosMenu() *************** *** 55,67 **** " " Description: function! s:ChooseMacro(ask) ! let pwd = getcwd() ! exe 'cd '.s:path.'/macros' let filename = Tex_ChooseFromPrompt( \ a:ask."\n" . ! \ Tex_CreatePrompt(glob('*'), 2, "\n") . \ "\nEnter number or filename :", ! \ glob('*'), "\n") ! exe 'cd '.pwd ! endfunction " }}} " DeleteMacro: deletes macro file {{{ function! <SID>DeleteMacro(...) --- 70,82 ---- " " Description: function! s:ChooseMacro(ask) ! let filelist = Tex_FileInRtp('', 'macros') let filename = Tex_ChooseFromPrompt( \ a:ask."\n" . ! \ Tex_CreatePrompt(filelist, 2, ',') . \ "\nEnter number or filename :", ! \ filelist, ',') ! endfunction ! ! " }}} " DeleteMacro: deletes macro file {{{ function! <SID>DeleteMacro(...) *************** *** 69,84 **** let filename = a:1 else - let pwd = getcwd() - exe 'cd '.s:path.'/macros' let filename = s:ChooseMacro('Choose a macro file for deletion :') - exe 'cd '.pwd endif ! let ch = confirm('Really delete '.filename.' ?', ! \"Yes\nNo", 2) ! if ch == 1 ! call delete(s:path.'/macros/'.filename) endif - call s:RedrawMacro() endfunction --- 84,102 ---- let filename = a:1 else let filename = s:ChooseMacro('Choose a macro file for deletion :') endif ! " Remove only if filename is in local directory ! if !filereadable(s:macrodirpath.filename) ! call confirm('This file is not in your local directory: '.filename."\n". ! \ 'It will not be deleted.' , '&OK', 1) ! ! else ! let ch = confirm('Really delete '.filename.' ?', "&Yes\n&No", 2) ! if ch == 1 ! call delete(s:macrodirpath.filename) ! endif ! call RedrawMacro() endif endfunction *************** *** 89,101 **** let filename = a:1 else - let pwd = getcwd() - exe 'cd '.s:path.'/macros' let filename = s:ChooseMacro('Choose a macro file for insertion:') - exe 'cd '.pwd endif ! exe "split ".s:path."/macros/".filename ! exe "lcd ".s:path."/macros/" ! set filetype=tex endfunction --- 107,129 ---- let filename = a:1 else let filename = s:ChooseMacro('Choose a macro file for insertion:') endif ! if filereadable(s:macrodirpath.filename) ! exe 'split '.s:macrodirpath.filename ! else ! let ch = confirm("You are trying to edit file which is probably read-only.\n". ! \ "It will be copied to your local LaTeX-Suite macros directory\n". ! \ "and you will be operating on local copy with suffix -local.\n". ! \ "It will succeed only if ftplugin/latex-suite/macros dir exists.\n". ! \ "Do you agree?", "&Yes\n&No", 1) ! if ch == 1 ! new ! exe '0read '.Tex_FileInRtp(filename, 'macros') ! exe 'write '.s:macrodirpath.filename.'-local' ! endif ! ! endif ! setlocal filetype=tex endfunction *************** *** 108,118 **** let filename = a:1 else ! let pwd = getcwd() ! exe 'cd '.s:path.'/macros' ! let filename = s:ChooseMacro('Choose a macro file for insertion:') ! exe 'cd '.pwd endif ! let fname = s:path.'/macros/'.filename let markerString = '<---- Latex Suite End Macro ---->' --- 136,148 ---- let filename = a:1 else ! let filelist = Tex_FileInRtp('', 'macros') ! let filename = ! \ Tex_ChooseFromPrompt("Choose a macro file:\n" . ! \ Tex_CreatePrompt(filelist, 2, ',') . ! \ "\nEnter number or name of file :", ! \ filelist, ',') endif ! let fname = Tex_FileInRtp(filename, 'macros') let markerString = '<---- Latex Suite End Macro ---->' *************** *** 141,148 **** " }}} " commands for macros {{{ ! com! -nargs=? TMacro :let s:retVal = <SID>ReadMacro(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! com! -nargs=0 TMacroNew :call <SID>NewMacro() ! com! -nargs=? TMacroEdit :call <SID>EditMacro(<f-args>) ! com! -nargs=? TMacroDelete :call <SID>DeleteMacro(<f-args>) " }}} --- 171,206 ---- " }}} " commands for macros {{{ ! com! -nargs=1 TMacroNew :call <SID>NewMacro(<f-args>) ! ! " This macros had to have 2 versions: ! if v:version >= 602 ! com! -complete=custom,Tex_CompleteMacroName -nargs=? TMacro ! \ :let s:retVal = <SID>ReadMacro(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! com! -complete=custom,Tex_CompleteMacroName -nargs=? TMacroEdit ! \ :call <SID>EditMacro(<f-args>) ! com! -complete=custom,Tex_CompleteMacroName -nargs=? TMacroDelete ! \ :call <SID>DeleteMacro(<f-args>) ! ! " Tex_CompleteMacroName: for completing names in TMacro... commands {{{ ! " Description: get list of macro names with Tex_FileInRtp(), remove full path ! " and return list of names separated with newlines. ! " ! function! Tex_CompleteMacroName(A,P,L) ! " Get name of macros from all runtimepath directories ! let macronames = Tex_FileInRtp('', 'macros') ! " Separate names with \n not , ! let macronames = substitute(macronames,',','\n','g') ! return macronames ! endfunction ! ! " }}} ! ! else ! com! -nargs=? TMacro ! \ :let s:retVal = <SID>ReadMacro(<f-args>) <bar> normal! i<C-r>=s:retVal<CR> ! com! -nargs=? TMacroEdit :call <SID>EditMacro(<f-args>) ! com! -nargs=? TMacroDelete :call <SID>DeleteMacro(<f-args>) ! ! endif " }}} |
From: <mi...@us...> - 2003-09-16 22:50:34
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv15635 Modified Files: folding.vim Log Message: add new environments to folding (gather, align, abstract Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** folding.vim 3 Mar 2003 20:57:27 -0000 1.11 --- folding.vim 16 Sep 2003 22:50:30 -0000 1.12 *************** *** 152,155 **** --- 152,179 ---- \ ) " }}} + " {{{ intertext + call AddSyntaxFoldItem ( + \ '^\s*\\intertext{', + \ '^\s*}', + \ 0, + \ 0 + \ ) + " }}} + " {{{ abstract + call AddSyntaxFoldItem ( + \ '^\s*\\begin{abstract}', + \ '^\s*\\end{abstract}', + \ 0, + \ 0 + \ ) + " }}} + " {{{ keywords + call AddSyntaxFoldItem ( + \ '^\s*\\begin{keywords}', + \ '^\s*\\end{keywords}', + \ 0, + \ 0 + \ ) + " }}} " {{{ table call AddSyntaxFoldItem ( *************** *** 168,171 **** --- 192,210 ---- \ ) " }}} + " {{{ align/alignat + call AddSyntaxFoldItem ( + \ '^\s*\\begin{align', + \ '^\s*\\end{align', + \ 0, + \ 0 + \ ) + " }}} + call AddSyntaxFoldItem ( + \ '^\s*\\begin{gather', + \ '^\s*\\end{gather', + \ 0, + \ 0 + \ ) + " }}} " {{{ equation/eqnarray call AddSyntaxFoldItem ( *************** *** 243,247 **** function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\)[^}]*\ze}') let caption = '' --- 282,286 ---- function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), '^\s*\\begin{\zs\(figure\|table\|equation\|eqnarray\|gather\|align\|abstract\|keywords\)[^}]*\ze}') let caption = '' |
From: <sri...@us...> - 2003-09-13 07:54:23
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv984 Modified Files: latex-suite.xml latex-suite.txt Log Message: Description of Tex_Com_name Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** latex-suite.xml 12 Sep 2003 10:25:20 -0000 1.19 --- latex-suite.xml 13 Sep 2003 07:54:17 -0000 1.20 *************** *** 389,396 **** &ls; provides two simple mappings <literal><F7></literal> and <literal><S-F7></literal> which work in both insert and normal ! mode in an idential manner. Pressing <literal><F7></literal> ! prompts you with a list of commands to choose from and then inserts it ! into the text of the document. The list of commands is constructed from ! the <link linkend="Tex_PromptedCommands"><literal>g:Tex_PromptedCommands</literal></link> setting and also from commands which &ls; finds while scanning custom --- 389,398 ---- &ls; provides two simple mappings <literal><F7></literal> and <literal><S-F7></literal> which work in both insert and normal ! mode in an idential manner. In insert mode, if the cursor is located on ! (or just after) a non-whitespace character, then a command from the ! last word (<literal><cword></literal>) is created. If the cursor ! is located on a white-space character, then you will be prompted with a ! list of commands to choose from. The list of commands is constructed ! from the <link linkend="Tex_PromptedCommands"><literal>g:Tex_PromptedCommands</literal></link> setting and also from commands which &ls; finds while scanning custom *************** *** 400,403 **** --- 402,414 ---- </para> <para> + For certain common commands, &ls; will expand them to include + additional arguments as needed. Otherwise, it will simply change the + word under the cursor as follows + <programlisting>word --> \word{&ph;}&ph;</programlisting> + You can define custom expansios of commands using the + <literal>Tex_Com_{name}</literal> setting as described in <link + linkend="Tex_Com_name">here</link>. + </para> + <para> In both insert and normal mode <literal><S-F7></literal> will find out if you are presently within an environment and then prompt you *************** *** 589,598 **** the following template will be inserted: <programlisting>@BOOK{<+key+>, ! author = {&ph;}, ! editor = {&ph;}, ! title = {&ph;}, ! publisher = {&ph;}, ! year = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> </para> --- 600,609 ---- the following template will be inserted: <programlisting>@BOOK{<+key+>, ! author = {&ph;}, ! editor = {&ph;}, ! title = {&ph;}, ! publisher = {&ph;}, ! year = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> </para> *************** *** 670,678 **** <literal>BBB</literal> inserts the following template by default <programlisting>@ARTICLE{<+key+>, ! author = {&ph;}, ! title = {&ph;}, ! journal = {&ph;}, ! year = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> However, if <literal>g:Bib_article_options</literal> is defined as --- 681,689 ---- <literal>BBB</literal> inserts the following template by default <programlisting>@ARTICLE{<+key+>, ! author = {&ph;}, ! title = {&ph;}, ! journal = {&ph;}, ! year = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> However, if <literal>g:Bib_article_options</literal> is defined as *************** *** 680,691 **** insert the following template <programlisting>@ARTICLE{<+key+>, ! author = {&ph;}, ! title = {&ph;}, ! journal = {&ph;}, ! year = {&ph;}, ! month = {&ph;}, ! number = {&ph;}, ! pages = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> </para> --- 691,702 ---- insert the following template <programlisting>@ARTICLE{<+key+>, ! author = {&ph;}, ! title = {&ph;}, ! journal = {&ph;}, ! year = {&ph;}, ! month = {&ph;}, ! number = {&ph;}, ! pages = {&ph;}, ! otherinfo = {&ph;} }&ph;</programlisting> </para> *************** *** 3086,3093 **** </para> <para> ! Notice how special characters such as carriage return are specified ! using the <literal>"\<key>"</literal> notation. Also use double ! quotes if you wish to enter such special keys. Also backslashes have ! to be doubled. </para> <para> --- 3097,3103 ---- </para> <para> ! If the expaniosn uses special keys such as carriage return etc, then ! use double-quotes and use the <literal>"\<key>"</literal> ! notation for special keys. Backslashes have to be doubled. </para> <para> *************** *** 3109,3112 **** --- 3119,3141 ---- \end{eqnarray*}&ph;</programlisting> </para> + </section> + <section id="Tex_Com_name"> + <title>Tex_Com_name</title> + <para> + If you wish to define new expansions for fast command insertion as + described <link linkend="latex-command-maps">here</link>, or redefine + expansios from the default values in &ls;, you will need to define + variables of the form <literal>g:Tex_Com_{name}</literal> where + <literal>name</literal> is a command name. For example, with the + setting + <programlisting>let g:Tex_Com_frac = "\\frac{&ph;}{&ph;}&ph;"</programlisting> + pressing <literal><F7></literal> after typing + <literal>frac</literal> will change it to <literal>\frac{&ph;}{&ph;}&ph;</literal> + </para> + <para> + See <link linkend="Tex_Env_name">Tex_Env_name</link> for additional + details on how to create this setting in various special + circumstances. + </para> </section> </section> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** latex-suite.txt 12 Sep 2003 10:25:20 -0000 1.42 --- latex-suite.txt 13 Sep 2003 07:54:17 -0000 1.43 *************** *** 12,16 **** macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dy|] for a list of people who have helped. --- 12,16 ---- macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. Latex-suite has been possible because of the contributions of ! many people. Please see latex-suite-credits [|ls_a_dz|] for a list of people who have helped. [...1054 lines suppressed...] --- 2847,2851 ---- ================================================================================ ! Credits *ls_11* *ls_a_dz* *latex-suite-credits* *************** *** 2859,2863 **** out who has done what. ! *latex-suite-maintainer* *ls_a_ed* The current maintainer(s) of latex-suite is(are) --- 2882,2886 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_ee* The current maintainer(s) of latex-suite is(are) |
From: <sri...@us...> - 2003-09-13 07:06:46
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv25590 Modified Files: envmacros.vim Log Message: New: For the fast command insertion, if the cursor is on a <cword> then use that to construct a command. Otherwise, as before, prompt for a command. New: Utilize a new setting g:Tex_Com_{name} where name is a command name to enable user customizable command completion. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** envmacros.vim 12 Sep 2003 10:29:33 -0000 1.35 --- envmacros.vim 13 Sep 2003 07:06:41 -0000 1.36 *************** *** 559,563 **** " This will effectively over-write the default definition of the " theorem environment which uses a \label. ! if exists("g:Tex_Env_{'".a:env."'}") return IMAP_PutTextWithMovement(g:Tex_Env_{a:env}) elseif a:env =~ 'equation*\|eqnarray*\|theorem\|lemma\|equation\|eqnarray\|align\*\|align\>\|multline' --- 559,565 ---- " This will effectively over-write the default definition of the " theorem environment which uses a \label. ! if exists("b:Tex_Env_{'".a:env."'}") ! return IMAP_PutTextWithMovement(b:Tex_Env_{a:env}) ! elseif exists("g:Tex_Env_{'".a:env."'}") return IMAP_PutTextWithMovement(g:Tex_Env_{a:env}) elseif a:env =~ 'equation*\|eqnarray*\|theorem\|lemma\|equation\|eqnarray\|align\*\|align\>\|multline' *************** *** 870,873 **** --- 872,880 ---- " Implementation of Fast Environment commands for LaTeX commands " ============================================================================== + " Define certain commonly used command definitions {{{ + " + TexLet g:Tex_Com_{'newtheorem'} = '\newtheorem{<+name+>}{<+caption+>}[<+within+>]' + TexLet g:Tex_Com_{'frac'} = '\frac{<+n+>}{<+d+>}<++>' + " }}} " PromptForCommand: prompts for a command {{{ " Description: *************** *** 892,895 **** --- 899,908 ---- function! Tex_DoCommand(...) if a:0 < 1 + if getline('.') != '' + let lastword = expand('<cword>') + if lastword != '' + return substitute(lastword, '.', "\<bs>", 'g').Tex_PutCommand(lastword) + endif + endif let com = PromptForCommand('Choose a command to insert: ') if com != '' *************** *** 906,912 **** " Based on input argument, it calls various specialized functions. function! Tex_PutCommand(com) - if exists("s:isvisual") && s:isvisual == "yes" - let s:isvisual = 'no' --- 919,923 ---- *************** *** 918,932 **** return VEnclose("\\".a:com.'{', '}', "\\".a:com.'{', '}') endif - else ! ! if a:com == '$' return IMAP_PutTextWithMovement('$<++>$') else return IMAP_PutTextWithMovement("\\".a:com.'{<++>}<++>') endif - endif - endfunction " }}} " Mapping the <F7> key to prompt/insert for command {{{ --- 929,943 ---- return VEnclose("\\".a:com.'{', '}', "\\".a:com.'{', '}') endif else ! if exists('b:Tex_Com_{"'.a:com.'"}') ! return IMAP_PutTextWithMovement(b:Tex_Com_{a:com}) ! elseif exists('g:Tex_Com_{"'.a:com.'"}') ! return IMAP_PutTextWithMovement(g:Tex_Com_{a:com}) ! elseif a:com == '$' return IMAP_PutTextWithMovement('$<++>$') else return IMAP_PutTextWithMovement("\\".a:com.'{<++>}<++>') endif endif endfunction " }}} " Mapping the <F7> key to prompt/insert for command {{{ *************** *** 941,945 **** let b:DoubleDollars = 0 - " Provide only <plug>s here. main.vim will create the actual maps. inoremap <silent> <Plug>Tex_FastCommandInsert <C-r>=Tex_FastCommandInsert('no')<cr> nnoremap <silent> <Plug>Tex_FastCommandInsert i<C-r>=Tex_FastCommandInsert('no')<cr> --- 952,955 ---- *************** *** 952,956 **** " Here we are not solving if we are in preamble, behaviour is always the " same. - " function! Tex_FastCommandInsert(isvisual) --- 962,965 ---- |
From: <sri...@us...> - 2003-09-13 07:03:16
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv25069 Modified Files: main.vim Log Message: - make s:SmartDots() insert \dots instead of \cdots or \ldots if the amsmath package is detected. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** main.vim 29 Aug 2003 02:29:35 -0000 1.46 --- main.vim 13 Sep 2003 07:03:13 -0000 1.47 *************** *** 294,301 **** endif " }}} " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ if g:Tex_SmartKeyDot function! <SID>SmartDots() ! if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' \&& strpart(getline('.'), col('.')-3, 2) == '..' return "\<bs>\<bs>\\cdots" --- 294,306 ---- endif " }}} " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ + " if amsmath package is detected then just use \dots and let amsmath take care + " of it. if g:Tex_SmartKeyDot function! <SID>SmartDots() ! if strpart(getline('.'), col('.')-3, 2) == '..' && ! \ g:Tex_package_detected =~ '\<amsmath\>' ! return "\<bs>\<bs>\\dots" ! elseif synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' \&& strpart(getline('.'), col('.')-3, 2) == '..' return "\<bs>\<bs>\\cdots" |