vim-latex-cvs Mailing List for Vim-Latex (Page 13)
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-12-04 00:06:09
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv3446 Modified Files: imaps.vim Log Message: Meta-bug! A bug in the debugging function. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** imaps.vim 26 Nov 2003 05:45:46 -0000 1.36 --- imaps.vim 4 Dec 2003 00:06:06 -0000 1.37 *************** *** 736,748 **** endif endfunction " }}} ! " IMAP_DebugPrint: interface to Tex_DebugPrint if avaialable, otherwise emulate it {{{ " Description: ! function! IMAP_DebugPrint(pattern) ! if exists('*Tex_DebugPrint') ! call Tex_DebugPrint(a:pattern) else if exists('s:debug_'.a:pattern) - let s:debug_{a:pattern} = '' - else echo s:debug_{a:pattern} endif --- 736,746 ---- endif endfunction " }}} ! " IMAP_PrintDebug: interface to Tex_DebugPrint if avaialable, otherwise emulate it {{{ " Description: ! function! IMAP_PrintDebug(pattern) ! if exists('*Tex_PrintDebug') ! call Tex_PrintDebug(a:pattern) else if exists('s:debug_'.a:pattern) echo s:debug_{a:pattern} endif |
From: <sri...@us...> - 2003-12-02 12:00:31
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv31767 Modified Files: latex-suite.xml latex-suite.txt Log Message: Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** latex-suite.xml 2 Dec 2003 11:42:41 -0000 1.29 --- latex-suite.xml 2 Dec 2003 12:00:21 -0000 1.30 *************** *** 2236,2241 **** This entry defines which commands will be folded. It is a comma seperated string of words each of which defines a single command. ! The defualt setting is ! <programlisting>footnote,intertext</programlisting> The words need not be standard Latex commands. You can use whatever words you like. Each word will fold all commands whose name begins --- 2236,2240 ---- This entry defines which commands will be folded. It is a comma seperated string of words each of which defines a single command. ! The default setting is empty, i.e no commands are folded. The words need not be standard Latex commands. You can use whatever words you like. Each word will fold all commands whose name begins *************** *** 2244,2247 **** --- 2243,2268 ---- variable. </para> + <note> + <para> + It is very difficult to fold commands reliably because it is very + difficult to create a regexp which will match a line containing + unmatched parentheses (or curly brackets), but will not match a line + containing matched parentheses. + </para> + <para> + Just to make things safer, only lines which start a command but do + not contain additional curly braces after the command has started are + folded. In other words, if you wanted to fold the the command + <literal>"mycommand"</literal>, then the lines + <programlisting>\mycommand{This is a line + and some more text on the next line + }</programlisting> + will be folded, but the lines + <programlisting>\mycommand{This is a \textbf{line} + and some more text + }</programlisting> + will not be folded. This is a bug which is very difficult to fix. + </para> + </note> <para> See also <link linkend="fold-setting-advanced">advanced fold Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.50 retrieving revision 1.51 diff -C2 -d -r1.50 -r1.51 *** latex-suite.txt 2 Dec 2003 11:42:41 -0000 1.50 --- latex-suite.txt 2 Dec 2003 12:00:22 -0000 1.51 *************** *** 1835,1844 **** This entry defines which commands will be folded. It is a comma seperated string ! of words each of which defines a single command. The defualt setting is > ! footnote,intertext ! The words need not be standard Latex commands. You can use whatever words you ! like. Each word will fold all commands whose name begins with that word as in ! the case of the Tex_FoldedEnvironments [|ls_a_ci|] variable. See also advanced fold settings [|ls_a_cl|]. --- 1835,1863 ---- This entry defines which commands will be folded. It is a comma seperated string ! of words each of which defines a single command. The defualt setting is empty, ! i.e no commands are folded. The words need not be standard Latex commands. You ! can use whatever words you like. Each word will fold all commands whose name ! begins with that word as in the case of the Tex_FoldedEnvironments [|ls_a_ci|] ! variable. + NOTE: It is very difficult to fold commands reliably because it is very + difficult to create a regexp which will match a line containing unmatched + parentheses (or curly brackets), but will not match a line containing + matched parentheses. + + Just to make things safer, only lines which start a command but do not + contain additional curly braces after the command has started are folded. + In other words, if you wanted to fold the the command "mycommand", then + the lines > + \mycommand{This is a line + and some more text on the next line + } + < will be folded, but the lines > + \mycommand{This is a \textbf{line} + and some more text + } + < will not be folded. This is a bug which is very difficult to fix. + + See also advanced fold settings [|ls_a_cl|]. |
From: <sri...@us...> - 2003-12-02 11:42:44
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv28630 Modified Files: latex-suite.xml latex-suite.txt Log Message: Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** latex-suite.xml 1 Dec 2003 08:36:59 -0000 1.28 --- latex-suite.xml 2 Dec 2003 11:42:41 -0000 1.29 *************** *** 2258,2262 **** <note> <para> ! Unlike the other Tex_FoldXXXX variables, the words in this setting are limited to take values from the following list: </para> --- 2258,2262 ---- <note> <para> ! Unlike the other Tex_FoldedXXXX variables, the words in this setting are limited to take values from the following list: </para> *************** *** 2326,2336 **** Each of the fold setting variables <literal>Tex_FoldedSections</literal>, ! <literal>Tex_FoldEnvironments</literal> etc., as explained previously is a comma seperated string of variables. However, to make it easier to <emphasis>add</emphasis> to the default settings without having to repeat the whole default setting again, &ls; uses the following logic in forming the complete setting string from the ! <literal>Tex_FoldXXXX</literal> variables. If the variable starts with ! a comma, then <literal>Tex_FoldXXXX</literal> is added to the end of the default string rather than replacing it. Similarly, if it ends with a comma, then it will be prepended to the beginning of the --- 2326,2336 ---- Each of the fold setting variables <literal>Tex_FoldedSections</literal>, ! <literal>Tex_FoldedEnvironments</literal> etc., as explained previously is a comma seperated string of variables. However, to make it easier to <emphasis>add</emphasis> to the default settings without having to repeat the whole default setting again, &ls; uses the following logic in forming the complete setting string from the ! <literal>Tex_FoldedXXXX</literal> variables. If the variable starts with ! a comma, then <literal>Tex_FoldedXXXX</literal> is added to the end of the default string rather than replacing it. Similarly, if it ends with a comma, then it will be prepended to the beginning of the *************** *** 2338,2349 **** </para> <para> ! For example, if <literal>Tex_FoldEnvironments</literal> is set to the string <literal>"myenv"</literal>, then only an environment of the form <literal>\begin{myenv}</literal> will be folded. However, if the ! <literal>Tex_FoldEnvironments</literal> setting is <literal>",myenv"</literal>, then the <literal>\begin{myenv}</literal> environment will be folded after all other environments in the default setting have been folded. On the other hand if ! <literal>Tex_FoldEnvironments</literal> is of the form <literal>"myenv,"</literal>, the <literal>\begin{myenv}</literal> environment will be folded before the rest of the environments in the --- 2338,2349 ---- </para> <para> ! For example, if <literal>Tex_FoldedEnvironments</literal> is set to the string <literal>"myenv"</literal>, then only an environment of the form <literal>\begin{myenv}</literal> will be folded. However, if the ! <literal>Tex_FoldedEnvironments</literal> setting is <literal>",myenv"</literal>, then the <literal>\begin{myenv}</literal> environment will be folded after all other environments in the default setting have been folded. On the other hand if ! <literal>Tex_FoldedEnvironments</literal> is of the form <literal>"myenv,"</literal>, the <literal>\begin{myenv}</literal> environment will be folded before the rest of the environments in the Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** latex-suite.txt 1 Dec 2003 08:36:59 -0000 1.49 --- latex-suite.txt 2 Dec 2003 11:42:41 -0000 1.50 *************** *** 780,784 **** ! {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| --- 780,784 ---- ! {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| *************** *** 1103,1107 **** g:TeX_package_<package> = "pre:Command,pre:Command1" ! More detailed example is in Latex-Suite/packages/exmpl file (slightly outdated). Here is short summary of prefixes which can be used in package files: --- 1103,1107 ---- g:TeX_package_<package> = "pre:Command,pre:Command1" ! More detailed example is in latex-suite/packages/exmpl file (slightly outdated). Here is short summary of prefixes which can be used in package files: *************** *** 1851,1855 **** words. The default value is: > item,preamble,<<< ! NOTE: Unlike the other Tex_FoldXXXX variables, the words in this setting are limited to take values from the following list: --- 1851,1855 ---- words. The default value is: > item,preamble,<<< ! NOTE: Unlike the other Tex_FoldedXXXX variables, the words in this setting are limited to take values from the following list: *************** *** 1883,1900 **** *fold-setting-adding* *ls_a_dU* ! Each of the fold setting variables Tex_FoldedSections, Tex_FoldEnvironments etc., as explained previously is a comma seperated string of variables. However, to make it easier to _add_ to the default settings without having to repeat the whole default setting again, Latex-Suite uses the following logic in forming the ! complete setting string from the Tex_FoldXXXX variables. If the variable starts ! with a comma, then Tex_FoldXXXX is added to the end of the default string rather ! than replacing it. Similarly, if it ends with a comma, then it will be prepended ! to the beginning of the default setting rather than replacing it. ! For example, if Tex_FoldEnvironments is set to the string "myenv", then only an ! environment of the form \begin{myenv} will be folded. However, if the ! Tex_FoldEnvironments setting is ",myenv", then the \begin{myenv} environment will be folded after all other environments in the default setting have been ! folded. On the other hand if Tex_FoldEnvironments is of the form "myenv,", the \begin{myenv} environment will be folded before the rest of the environments in the default setting. --- 1883,1901 ---- *fold-setting-adding* *ls_a_dU* ! Each of the fold setting variables Tex_FoldedSections, Tex_FoldedEnvironments etc., as explained previously is a comma seperated string of variables. However, to make it easier to _add_ to the default settings without having to repeat the whole default setting again, Latex-Suite uses the following logic in forming the ! complete setting string from the Tex_FoldedXXXX variables. If the variable ! starts with a comma, then Tex_FoldedXXXX is added to the end of the default ! string rather than replacing it. Similarly, if it ends with a comma, then it ! will be prepended to the beginning of the default setting rather than replacing ! it. ! For example, if Tex_FoldedEnvironments is set to the string "myenv", then only ! an environment of the form \begin{myenv} will be folded. However, if the ! Tex_FoldedEnvironments setting is ",myenv", then the \begin{myenv} environment will be folded after all other environments in the default setting have been ! folded. On the other hand if Tex_FoldedEnvironments is of the form "myenv,", the \begin{myenv} environment will be folded before the rest of the environments in the default setting. *************** *** 2164,2168 **** When used without any arguments lists all available templates from ! Latex-Suite/templates/ directory and prompts to choose one of them. 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' --- 2165,2169 ---- When used without any arguments lists all available templates from ! latex-suite/templates/ directory and prompts to choose one of them. 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' |
From: <sri...@us...> - 2003-12-02 11:38:24
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv27915 Modified Files: compiler.vim Log Message: Bug: Yet another place where string concatentation was not using dots. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** compiler.vim 2 Dec 2003 11:36:14 -0000 1.56 --- compiler.vim 2 Dec 2003 11:38:19 -0000 1.57 *************** *** 272,276 **** let s:viewer = '-a '.s:viewer endif ! let execString = 'silent! !open' s:viewer mainfname.'.'.s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). --- 272,276 ---- let s:viewer = '-a '.s:viewer endif ! let execString = 'silent! !open '.s:viewer.' '.mainfname.'.'.s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). |
From: <sri...@us...> - 2003-12-02 11:36:17
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv27551 Modified Files: compiler.vim Log Message: Bug: Viewing did not work on certain platforms because string concatenation wthout using a dot does not work on all platforms. (Alex Jakushev) Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.55 retrieving revision 1.56 diff -C2 -d -r1.55 -r1.56 *** compiler.vim 2 Dec 2003 11:04:17 -0000 1.55 --- compiler.vim 2 Dec 2003 11:36:14 -0000 1.56 *************** *** 267,276 **** " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = '!start' s:viewer mainfname . '.' . s:target elseif has('macunix') if strlen(s:viewer) ! let s:viewer = '-a ' . s:viewer endif ! let execString = 'silent! !open' s:viewer mainfname . '.' . s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). --- 267,276 ---- " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = '!start '.s:viewer.' '.mainfname.'.'.s:target elseif has('macunix') if strlen(s:viewer) ! let s:viewer = '-a '.s:viewer endif ! let execString = 'silent! !open' s:viewer mainfname.'.'.s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). *************** *** 326,331 **** return end " only know how to do forward search for yap on windows and xdvik (and ! " some newer versions of xdvi) on unices. if !exists('g:Tex_ViewRule_dvi') return --- 326,334 ---- return end + " only know how to do forward search for yap on windows and xdvik (and ! " some newer versions of xdvi) on unices. Therefore forward searching will ! " automatically open the DVI viewer irrespective of what the user chose as ! " the default view format. if !exists('g:Tex_ViewRule_dvi') return *************** *** 346,350 **** " tips on vim.sf.net (vim.sf.net tip #225) if has('win32') ! let execString = 'silent! !start '.viewer.' -s '.line('.').expand('%:p:t').' '.mainfname else if exists('g:Tex_UseEditorSettingInDVIViewer') && --- 349,355 ---- " tips on vim.sf.net (vim.sf.net tip #225) if has('win32') ! ! let execString = 'silent! !start '. viewer.' -s '.line('.').expand('%:p:t').' '.mainfname ! else if exists('g:Tex_UseEditorSettingInDVIViewer') && *************** *** 352,364 **** \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") let execString = '!'.viewer.' -name xdvi -sourceposition '.line('.').expand('%'). ! \ ' -editor "gvim --servername '.v:servername. ! \ ' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ viewer == "kdvi" let execString = 'silent! !kdvi --unique file:'.mainfname.'.dvi\#src:'.line('.').Tex_GetMainFileName(":p:t:r").' &' else let execString = 'silent! !'.viewer.' -name xdvi -sourceposition '.line('.').expand('%').' '.mainfname.'.dvi &' endif end --- 357,375 ---- \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") + let execString = '!'.viewer.' -name xdvi -sourceposition '.line('.').expand('%'). ! \ ' -editor "gvim --servername '.v:servername.' --remote-silent +\%l \%f" '. ! \ mainfname.'.dvi &' ! elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ viewer == "kdvi" + let execString = 'silent! !kdvi --unique file:'.mainfname.'.dvi\#src:'.line('.').Tex_GetMainFileName(":p:t:r").' &' + else + let execString = 'silent! !'.viewer.' -name xdvi -sourceposition '.line('.').expand('%').' '.mainfname.'.dvi &' + endif end *************** *** 520,528 **** " changes, we will rerun latex. if runCount == 0 && Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') ! let bibFileName = mainFileName_root . '.bbl' let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running '" . g:Tex_BibtexFlavor . "' ..." let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor exec 'silent! make '.mainFileName_root --- 531,539 ---- " changes, we will rerun latex. if runCount == 0 && Tex_IsPresentInFile('\\bibdata', mainFileName_root.'.aux') ! let bibFileName = mainFileName_root.'.bbl' let biblinesBefore = Tex_CatFile(bibFileName) ! echomsg "Running '".g:Tex_BibtexFlavor."' ..." let temp_mp = &mp | let &mp = g:Tex_BibtexFlavor exec 'silent! make '.mainFileName_root *************** *** 577,581 **** if getline('.') !~ '|\d\+ \(error\|warning\)|' if !search('|\d\+ \(error\|warning\)|') ! echomsg "not finding error pattern anywhere in quickfix window :".bufname(bufnr('%')) pclose! return --- 588,593 ---- if getline('.') !~ '|\d\+ \(error\|warning\)|' if !search('|\d\+ \(error\|warning\)|') ! call Tex_Debug("not finding error pattern anywhere in quickfix window :".bufname(bufnr('%')), ! \ 'comp') pclose! return |
From: <sri...@us...> - 2003-12-02 11:16:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv23729 Modified Files: folding.vim Log Message: Change: By default do not fold any commands at all. This is because the start pattern for a command requires a regexp which will match unbalanced parentheses of arbitrary depth. Apparently it can be proved that this cannot be done with regexps. Just to be on the safe side, change the start pattern for a command to '^\s*\\'.name.'{[^{}]*$'. This will at least ensure that no illegal folds are created. The limitation is that some legal folds might also not be created. Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** folding.vim 2 Dec 2003 10:56:20 -0000 1.22 --- folding.vim 2 Dec 2003 11:16:04 -0000 1.23 *************** *** 93,97 **** endif ! let s = 'footnote,intertext' if !exists('g:Tex_FoldedCommands') let g:Tex_FoldedCommands = s --- 93,104 ---- endif ! " By default do not fold any commands. It looks like trying to fold ! " commands is a difficult problem since commands can be arbitrarily nested ! " and the end patterns are not unique unlike the case of environments. ! " For this to work well, we need a regexp which will match a line only if ! " a command begins on that line but does not end on that line. This ! " requires a regexp which will match unbalanced curly braces and that is ! " apparently not doable with regexps. ! let s = '' if !exists('g:Tex_FoldedCommands') let g:Tex_FoldedCommands = s *************** *** 269,273 **** if s != '' if pass == 0 ! call AddSyntaxFoldItem('^\s*\\'.s.'{','^\s*}',0,0) else call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0) --- 276,287 ---- if s != '' if pass == 0 ! " NOTE: This pattern ensures that a command which is ! " terminated on the same line will not start a fold. ! " However, it will also refuse to fold certain commands ! " which have not terminated. eg: ! " \commandname{something \bf{text} and ! " will _not_ start a fold. ! " In other words, the pattern is safe, but not exact. ! call AddSyntaxFoldItem('^\s*\\'.s.'{[^{}]*$','^\s*}',0,0) else call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0) |
From: <sri...@us...> - 2003-12-02 11:04:20
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv21634 Modified Files: compiler.vim Log Message: Bug: \ls does not trigger search Why: tried to create the \ls mapping for the 'ls' mode. It should ofcourse be the normal ('n') mode. (Alex Jakushev) Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** compiler.vim 30 Nov 2003 09:49:51 -0000 1.54 --- compiler.vim 2 Dec 2003 11:04:17 -0000 1.55 *************** *** 746,750 **** call Tex_MakeMap(s:ml."ll", "<Plug>Tex_Compile", 'v', '<buffer>') call Tex_MakeMap(s:ml."lv", "<Plug>Tex_View", 'n', '<buffer>') ! call Tex_MakeMap(s:ml."ls", "<Plug>Tex_ForwardSearch", 'ls', '<buffer>') endfunction " }}} --- 746,750 ---- call Tex_MakeMap(s:ml."ll", "<Plug>Tex_Compile", 'v', '<buffer>') call Tex_MakeMap(s:ml."lv", "<Plug>Tex_View", 'n', '<buffer>') ! call Tex_MakeMap(s:ml."ls", "<Plug>Tex_ForwardSearch", 'n', '<buffer>') endfunction " }}} |
From: <sri...@us...> - 2003-12-02 10:56:24
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20299 Modified Files: folding.vim Log Message: Change: remove slide from the section setting. (Zhang Lin-bo) Change: add the \\begin{slide} pattern to the end pattern of the section environments. (Zhang Lin-bo) Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** folding.vim 2 Dec 2003 10:50:54 -0000 1.21 --- folding.vim 2 Dec 2003 10:56:20 -0000 1.22 *************** *** 113,117 **** if !exists('g:Tex_FoldedSections') ! let g:Tex_FoldedSections = 'slide,part,chapter,section,%%fakesection,' \. 'subsection,subsubsection,paragraph' endif --- 113,117 ---- if !exists('g:Tex_FoldedSections') ! let g:Tex_FoldedSections = 'part,chapter,section,%%fakesection,' \. 'subsection,subsubsection,paragraph' endif *************** *** 284,288 **** \ '^\s*\\frontmatter\|^\s*\\mainmatter\|^\s*\\backmatter\|' \. '^\s*\\begin{thebibliography\|>>>\|^\s*\\endinput\|' ! \. '^\s*\\end{document') endif " }}} --- 284,288 ---- \ '^\s*\\frontmatter\|^\s*\\mainmatter\|^\s*\\backmatter\|' \. '^\s*\\begin{thebibliography\|>>>\|^\s*\\endinput\|' ! \. '^\s*\\begin{slide\|^\s*\\end{document') endif " }}} |
From: <sri...@us...> - 2003-12-02 10:50:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv19367 Modified Files: folding.vim Log Message: Change: rename FoldSections to Tex_FoldSections Fix: Tex_FoldSections creates a pattern like '^\s*\\'.name as the start fold pattern for a section. This is wrong when name == '%%fakesection' Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** folding.vim 1 Dec 2003 05:17:32 -0000 1.20 --- folding.vim 2 Dec 2003 10:50:54 -0000 1.21 *************** *** 36,40 **** endfunction " }}} ! " FoldSections: creates section folds {{{ " Author: Zhang Linbo " Description: --- 36,40 ---- endfunction " }}} ! " Tex_FoldSections: creates section folds {{{ " Author: Zhang Linbo " Description: *************** *** 45,49 **** " " **works recursively** ! function! FoldSections(lst, endpat) let i = match(a:lst, ',') if i > 0 --- 45,49 ---- " " **works recursively** ! function! Tex_FoldSections(lst, endpat) let i = match(a:lst, ',') if i > 0 *************** *** 52,59 **** let s = a:lst endif ! let s = '^\s*\\' . s . '\W' let endpat = s . '\|' . a:endpat if i > 0 ! call FoldSections(strpart(a:lst,i+1), endpat) endif let endpat = '^\s*\\appendix\W\|' . endpat --- 52,63 ---- let s = a:lst endif ! if s =~ '%%fakesection' ! let s = '^\s*' . s ! else ! let s = '^\s*\\' . s . '\W' ! endif let endpat = s . '\|' . a:endpat if i > 0 ! call Tex_FoldSections(strpart(a:lst,i+1), endpat) endif let endpat = '^\s*\\appendix\W\|' . endpat *************** *** 277,281 **** " Sections {{{ if g:Tex_FoldedSections != '' ! call FoldSections(g:Tex_FoldedSections, \ '^\s*\\frontmatter\|^\s*\\mainmatter\|^\s*\\backmatter\|' \. '^\s*\\begin{thebibliography\|>>>\|^\s*\\endinput\|' --- 281,285 ---- " Sections {{{ if g:Tex_FoldedSections != '' ! call Tex_FoldSections(g:Tex_FoldedSections, \ '^\s*\\frontmatter\|^\s*\\mainmatter\|^\s*\\backmatter\|' \. '^\s*\\begin{thebibliography\|>>>\|^\s*\\endinput\|' |
From: <sri...@us...> - 2003-12-01 08:37:04
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv14230 Modified Files: latex-suite.xml latex-suite.txt Log Message: New: Describe the various new settings for customizing the folding scheme. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** latex-suite.xml 21 Nov 2003 03:34:49 -0000 1.27 --- latex-suite.xml 1 Dec 2003 08:36:59 -0000 1.28 *************** *** 33,41 **** <abstract> <para> ! Latex-Suite attempts to provide a comprehensive set of tools to view, edit and compile LaTeX documents in Vim. Together, they provide tools starting from 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 <link linkend="latex-suite-credits">latex-suite-credits</link> for a list of --- 33,41 ---- <abstract> <para> ! &ls; attempts to provide a comprehensive set of tools to view, edit and compile LaTeX documents in Vim. Together, they provide tools starting from macros to speed up editing LaTeX documents to functions for forward searching .dvi documents. ! &ls; has been possible because of the contributions of many people. Please see <link linkend="latex-suite-credits">latex-suite-credits</link> for a list of *************** *** 43,50 **** </para> <para> ! Latex-suite is released under the Vim charityware license. For license and conditions of use look at |copyright|. Replace all occurences of ``Vim'' with ``Latex-Suite''. The current copyright ! holders of Latex-Suite are Srinath Avadhanula and Mikolaj Machowski. </para> <para> --- 43,50 ---- </para> <para> ! &ls; is released under the Vim charityware license. For license and conditions of use look at |copyright|. Replace all occurences of ``Vim'' with ``Latex-Suite''. The current copyright ! holders of &ls; are Srinath Avadhanula and Mikolaj Machowski. </para> <para> *************** *** 66,70 **** <literal>~/.vimrc.</literal> <programlisting> ! " REQUIRED. This makes vim invoke latex-suite when you open a tex file. filetype plugin on --- 66,70 ---- <literal>~/.vimrc.</literal> <programlisting> ! " REQUIRED. This makes vim invoke &ls; when you open a tex file. filetype plugin on *************** *** 74,78 **** " IMPORTANT: grep will sometimes skip displaying the file name if you ! " search in a singe file. This will confuse latex-suite. Set your grep " program to alway generate a file-name. set grepprg=grep\ -nH\ $* --- 74,78 ---- " IMPORTANT: grep will sometimes skip displaying the file name if you ! " search in a singe file. This will confuse &ls;. Set your grep " program to alway generate a file-name. set grepprg=grep\ -nH\ $* *************** *** 104,108 **** </para> <para> ! When latex-suite first starts up, it scans the <literal>$VIM/ftplugin/latex-suite/templates/</literal> directory and creates menu items based on the files found there. When --- 104,108 ---- </para> <para> ! When &ls; first starts up, it scans the <literal>$VIM/ftplugin/latex-suite/templates/</literal> directory and creates menu items based on the files found there. When *************** *** 137,141 **** <title>&ls; Macros</title> <para> ! Latex-Suite ships with a very comprehensive set of insert mode and |visual-mode| mappings and menu items to typeset most of the LaTeX elements. --- 137,141 ---- <title>&ls; Macros</title> <para> ! &ls; ships with a very comprehensive set of insert mode and |visual-mode| mappings and menu items to typeset most of the LaTeX elements. *************** *** 250,254 **** <para> If you press <literal><F5></literal> in the ! insert mode while on an empty line, latex-suite prompts you with a list of environments you might want to insert. You can either choose one from the list or type in a new environment --- 250,254 ---- <para> If you press <literal><F5></literal> in the ! insert mode while on an empty line, &ls; prompts you with a list of environments you might want to insert. You can either choose one from the list or type in a new environment *************** *** 268,272 **** <para> If you press <literal><F5></literal> while on a line ! containing a single word, then latex-suite creates a environment of that name. </para> --- 268,272 ---- <para> If you press <literal><F5></literal> while on a line ! containing a single word, then &ls; creates a environment of that name. </para> *************** *** 734,738 **** <formalpara> <title>Smart Space</title> ! Latex-suite maps the <literal><space></literal> key in such a way that $ characters are not broken across lines. It does this by first setting <literal>tw=0</literal> so that Vim will not --- 734,738 ---- <formalpara> <title>Smart Space</title> ! &ls; maps the <literal><space></literal> key in such a way that $ characters are not broken across lines. It does this by first setting <literal>tw=0</literal> so that Vim will not *************** *** 851,855 **** </para> <para> ! When latex-suite starts up, it scans the <literal>$VIM/ftplugin/latex-suite/macros/</literal> directory and creates a menu from the files found there. Each file is considered as --- 851,855 ---- </para> <para> ! When &ls; starts up, it scans the <literal>$VIM/ftplugin/latex-suite/macros/</literal> directory and creates a menu from the files found there. Each file is considered as *************** *** 886,892 **** 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> --- 886,892 ---- Opens up the corresponding macro file for editing. Use |:TexMacroEdit| in non-gui mode. When you try to edit {macro} ! not from local directory &ls; will copy it to your local directory with suffix "-local". If local copy already exists ! &ls; prompt for overwriting it. </entry> </row> *************** *** 897,901 **** 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> --- 897,901 ---- fast navigation of menus. Use |:TexMacroDelete| in non-gui mode. When you choose to delete {macro} which is not in your local ! directory &ls; will refuse to delete it. </entry> </row> *************** *** 1712,1716 **** <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 --- 1712,1716 ---- <para> If you are using commonly used LaTeX tools, then you should be all set ! as soon as you download and install &ls;. 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 *************** *** 1776,1780 **** to generate <literal>pdf</literal> files from <literal>dvi</literal> files, then you will need to specify the following setting in your ! latex-suite configuration (see <link linkend="customizing-latex-suite">customizing &ls;</link> for where these settings should go): --- 1776,1780 ---- to generate <literal>pdf</literal> files from <literal>dvi</literal> files, then you will need to specify the following setting in your ! &ls; configuration (see <link linkend="customizing-latex-suite">customizing &ls;</link> for where these settings should go): *************** *** 2028,2031 **** --- 2028,2038 ---- this functionality via the command line. </para> + <para> + From release 1.6 onwards of &ls;, the temporary file created + for part compilation will reside in the same directory as the file from + which the fragment is being created. This ensures that any relative + path-names defined in the fragment will still work. &ls; will + attempt to clean the temporary file(s) created when Vim exits. + </para> </section> </section> *************** *** 2116,2120 **** <title>Latex Folding</title> <para> ! Latex-suite ships with the plugin SyntaxFolds.vim which is a plugin for creating "fake" syntax folds on the fly. The fold method is actually manual but the folding is based on &latex; syntax. This offers a speed increase over --- 2123,2127 ---- <title>Latex Folding</title> <para> ! &ls; ships with the plugin SyntaxFolds.vim which is a plugin for creating "fake" syntax folds on the fly. The fold method is actually manual but the folding is based on &latex; syntax. This offers a speed increase over *************** *** 2176,2187 **** <title>Customizing what to fold</title> <para> ! At this time, there is no setting available to tweak the folds which are ! created by &ls;. However, the folds created by &ls; are listed in ! <literal>$VIM/ftplugin/latex-suite/folding.vim</literal>. You will need ! to modify the function <literal>MakeTexFolds()</literal> defined in ! that file to modify the fold syntax. <literal>MakeTexFolds</literal> ! makes a number of calls to <literal>AddSyntaxFoldItem</literal>. Each ! such call defines a new "fold item". The order in which these calls are ! made defines how the folds are nested. For example, if you desire an <literal>figure</literal> environment to be nested within a <literal>section</literal>, then you should define the fold for the --- 2183,2367 ---- <title>Customizing what to fold</title> <para> ! From version 1.6 onwards, the folding in &ls; can be controlled ! to a large extent via a number of global variables. ! </para> ! <section id="Tex_FoldedSections"> ! <title>Tex_FoldedSections</title> ! <para> ! This entry defines which sections will be folded. This ! setting is a comma seperated list of section names. ! The default value is: ! <programlisting>slide,part,chapter,section,%%fakesection, ! subsection,subsubsection,paragraph</programlisting> ! Each of the entries in the list will fold up a section of the ! corresponding name. The <literal>%%fakesection</literal> section is ! provided as a means for the user to group lines into "fake" sections. ! A <literal>%%fakesection</literal> is assumed to start on a line which ! begins with the string <literal>%%fakesection</literal> and continue ! till the start of the next <literal>\section</literal>, ! <literal>\subsection</literal> or any other section. ! </para> ! <para> ! See also <link linkend="fold-setting-advanced">advanced fold ! settings</link>. ! </para> ! </section> ! <section id="Tex_FoldedEnvironments"> ! <title>Tex_FoldedEnvironments</title> ! <para> ! This entry defines which environments will be folded. It is a ! comma seperated string of words each of which defines a single ! environment. The default settng is ! <programlisting>verbatim,comment,eq,gather, ! align,figure,table,thebibliography, ! keywords,abstract,titlepage</programlisting> ! The words need not be standard Latex environments. You can ! add any word you like. Also, each word will fold up all ! environments whose name begins with that word. For example, in ! the setting above, the word <literal>"eq"</literal> folds up the ! <literal>\begin{equation}</literal>, ! <literal>\begin{eqnarray}</literal>, ! <literal>\begin{eqnarray*}</literal> environments. To avoid ! this, you can replace the word <literal>"eq"</literal> with ! <literal>"eq}"</literal>. ! </para> ! <para> ! See also <link linkend="fold-setting-advanced">advanced fold ! settings</link>. ! </para> ! </section> ! <section id="Tex_FoldedCommands"> ! <title>Tex_FoldedCommands</title> ! <para> ! This entry defines which commands will be folded. It is a comma ! seperated string of words each of which defines a single command. ! The defualt setting is ! <programlisting>footnote,intertext</programlisting> ! The words need not be standard Latex commands. You can use whatever ! words you like. Each word will fold all commands whose name begins ! with that word as in the case of the <link ! linkend="Tex_FoldedEnvironments">Tex_FoldedEnvironments</link> ! variable. ! </para> ! <para> ! See also <link linkend="fold-setting-advanced">advanced fold ! settings</link>. ! </para> ! </section> ! <section id="Tex_FoldedMisc"> ! <title>Tex_FoldedMisc</title> ! <para> ! This entry defines fold syntax for certain items which do not ! naturally fit into the section, environment of command lists. It is a ! comma seperated list of words. The default value is: ! <programlisting>item,preamble,<<<</programlisting> ! <note> ! <para> ! Unlike the other Tex_FoldXXXX variables, the words in this setting ! are limited to take values from the following list: ! </para> ! <para> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <thead> ! <row> ! <entry>Value</entry> ! <entry>Meaning</entry> ! </row> ! </thead> ! <tbody> ! <row> ! <entry>comments</entry> ! <entry>Folds up contiguous blocks of comments</entry> ! </row> ! <row> ! <entry>item</entry> ! <entry>Folds up the <literal>\item</literal>s within list ! environments</entry> ! </row> ! <row> ! <entry>preamble</entry> ! <entry>Folds up the preamble of a document. (The part between ! the <literal>\documentclass</literal> command and the ! <literal>\begin{document}</literal> environment)</entry> ! </row> ! <row> ! <entry><literal><<<</literal></entry> ! <entry>Folds defined manually by the user using the ! <literal><<<</literal> and ! <literal>>>></literal> strings as fold-markers.</entry> ! </row> ! </tbody> ! </tgroup> ! </informaltable> ! Any other words in the <literal>Tex_FoldedMisc</literal> setting ! are silently ignored. ! </para> ! </note> ! </para> ! <para> ! See also <link linkend="fold-setting-advanced">advanced fold ! settings</link>. ! </para> ! </section> ! <section id="fold-setting-advanced"> ! <title>Advanced Fold setting details</title> ! <para> ! The order of the words in the <literal>Tex_FoldedXXXX</literal> ! variables is <emphasis>important</emphasis>. The order defines the ! order in which the folds are nested. For example, the value ! <literal>"subsection,section"</literal> for the ! <literal>Tex_FoldedSections</literal> variable will not fold any ! subsections at all. This is because the folds are created in the ! <emphasis>reverse</emphasis> order in which they occur in the ! <literal>Tex_FoldedSections</literal> setting and also, once a fold is ! created, the interior of the fold is not examined for creating ! additional folds. In the above case, this means that a ! <literal>\section</literal> is folded first and then its interior is ! not examined further. The correct value should have been ! <literal>"section,subsection"</literal> ! </para> ! <anchor id="fold-setting-adding" /> ! <para> ! Each of the fold setting variables ! <literal>Tex_FoldedSections</literal>, ! <literal>Tex_FoldEnvironments</literal> etc., as explained previously ! is a comma seperated string of variables. However, to make it easier ! to <emphasis>add</emphasis> to the default settings without having to ! repeat the whole default setting again, &ls; uses the following logic ! in forming the complete setting string from the ! <literal>Tex_FoldXXXX</literal> variables. If the variable starts with ! a comma, then <literal>Tex_FoldXXXX</literal> is added to the end of ! the default string rather than replacing it. Similarly, if it ends ! with a comma, then it will be prepended to the beginning of the ! default setting rather than replacing it. ! </para> ! <para> ! For example, if <literal>Tex_FoldEnvironments</literal> is set to the ! string <literal>"myenv"</literal>, then only an environment of the ! form <literal>\begin{myenv}</literal> will be folded. However, if the ! <literal>Tex_FoldEnvironments</literal> setting is ! <literal>",myenv"</literal>, then the <literal>\begin{myenv}</literal> ! environment will be folded after all other environments in the default ! setting have been folded. On the other hand if ! <literal>Tex_FoldEnvironments</literal> is of the form ! <literal>"myenv,"</literal>, the <literal>\begin{myenv}</literal> ! environment will be folded before the rest of the environments in the ! default setting. ! </para> ! </section> ! </section> ! <section id="editing-folding"> ! <title>Editing the folding.vim file directly</title> ! <para> ! If you are using version 1.5 of &ls; or older, you will need to ! directly edit the ! <literal>$VIM/ftplugin/latex-suite/folding.vim</literal> file if you ! wish to modify the folding scheme. You will need to modify the ! function <literal>MakeTexFolds()</literal> defined in that file to ! modify the fold syntax. <literal>MakeTexFolds</literal> makes a number ! of calls to <literal>AddSyntaxFoldItem</literal>. Each such call ! defines a new "fold item". The order in which these calls are made ! defines how the folds are nested. For example, if you desire an <literal>figure</literal> environment to be nested within a <literal>section</literal>, then you should define the fold for the *************** *** 2488,2493 **** 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). --- 2668,2673 ---- ftplugin/latex-suite/macros/ directories and prompt you to choose one of them. When you try to edit {macro} not from local directory ! &ls; will copy it to your local directory with suffix ! "-local". If local copy already exists &ls; prompt for overwriting it. In Vim >= 6.2 works completion of names of macros (see 'wildmenu', 'wildmode' for more about command-line completion). *************** *** 2498,2502 **** <para> Splits window to write new macro. Directory in new buffer is ! locally changed to latex-suite/macros/. </para> </section> --- 2678,2682 ---- <para> Splits window to write new macro. Directory in new buffer is ! locally changed to &ls;/macros/. </para> </section> *************** *** 2506,2512 **** 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) --- 2686,2692 ---- Delets {macro} from your local ftplugin/latex-suite/macros/ directory. When used without any arguments lists all available ! macros defined in &ls;/macros/ directory and prompt you to choose one of them. When you choose to delete {macro} which is not ! in your local directory &ls; will refuse to delete it. In Vim >= 6.2 works completion of names of macros (see 'wildmenu', 'wildmode' for more about command-line completion) *************** *** 2779,2783 **** </informaltable> <para> ! If set to 1, then latex-suite will create certain global debug statements which can be printed by doing <programlisting>:call Tex_PrintDebug()</programlisting> --- 2959,2963 ---- </informaltable> <para> ! If set to 1, then &ls; will create certain global debug statements which can be printed by doing <programlisting>:call Tex_PrintDebug()</programlisting> *************** *** 2951,2955 **** <para> If this variable is set to 1, then when an enviroment is chosen from the ! menu then for selected environments, latex-suite asks a series of questions on the command line and inserts a template with the corresponding fields already filled in. Setting this to zero will insert --- 3131,3135 ---- <para> If this variable is set to 1, then when an enviroment is chosen from the ! menu then for selected environments, &ls; asks a series of questions on the command line and inserts a template with the corresponding fields already filled in. Setting this to zero will insert *************** *** 2971,2975 **** </informaltable> <para> ! This option when set to 1, temporarily freezes latex-suite's macro expansion. It might be useful when you are using some other keymap which is causing excessive macro expansion. Use a buffer-local --- 3151,3155 ---- </informaltable> <para> ! This option when set to 1, temporarily freezes &ls;'s macro expansion. It might be useful when you are using some other keymap which is causing excessive macro expansion. Use a buffer-local *************** *** 3026,3030 **** </informaltable> <para> ! The mappings in latex-suite are by default prefixed with the back-tick character. For example, <literal>`/</literal> inserts <literal>\frac{&ph;}{&ph;}&ph;</literal> etc. You can change the --- 3206,3210 ---- </informaltable> <para> ! The mappings in &ls; are by default prefixed with the back-tick character. For example, <literal>`/</literal> inserts <literal>\frac{&ph;}{&ph;}&ph;</literal> etc. You can change the *************** *** 3681,3686 **** </informaltable> <para> ! This setting decides the location of the first top-level latex-suite ! menu. You can for example shift all the menus created by latex-suite to the very end by setting this value to a large number like 990. </para> --- 3861,3866 ---- </informaltable> <para> ! This setting decides the location of the first top-level &ls; ! menu. You can for example shift all the menus created by &ls; to the very end by setting this value to a large number like 990. </para> *************** *** 3861,3865 **** <row> <entry>Artur R. Czechowski</entry> ! <entry>maintains the BSD package of latex-suite. Lots of valuable feedback.</entry> </row> --- 4041,4045 ---- <row> <entry>Artur R. Czechowski</entry> ! <entry>maintains the BSD package of &ls;. Lots of valuable feedback.</entry> </row> *************** *** 3888,3892 **** <entry> his variation of Stephen Riehm's bracketing system is used ! in latex-suite. </entry> --- 4068,4072 ---- <entry> his variation of Stephen Riehm's bracketing system is used ! in &ls;. </entry> *************** *** 3971,3979 **** </entry> </row> </tbody> </tgroup> </informaltable> <para> ! A large number of functions in latex-suite come from various other people. Some of those people might have been missed here. Each function should however have the author's name/e-mail above it. Thats the more authoritative place to --- 4151,4168 ---- </entry> </row> + <row> + <entry> + Zhang Lin-bo + </entry> + <entry> + lots of very useful additions to folding. The code for customizing + the folding scheme is due to him. + </entry> + </row> </tbody> </tgroup> </informaltable> <para> ! A large number of functions in &ls; come from various other people. Some of those people might have been missed here. Each function should however have the author's name/e-mail above it. Thats the more authoritative place to *************** *** 3982,3986 **** <anchor id="latex-suite-maintainer"></anchor> <para> ! The current maintainer(s) of latex-suite is(are) </para> <simplelist> --- 4171,4175 ---- <anchor id="latex-suite-maintainer"></anchor> <para> ! The current maintainer(s) of &ls; is(are) </para> <simplelist> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** latex-suite.txt 16 Nov 2003 03:37:00 -0000 1.48 --- latex-suite.txt 1 Dec 2003 08:36:59 -0000 1.49 *************** *** 11,19 **** compile LaTeX documents in Vim. Together, they provide tools starting from 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_dC|] for a list of people who have helped. ! Latex-suite is released under the Vim charityware license. For license and conditions of use look at |copyright|. Replace all occurences of ``Vim'' with ``Latex-Suite''. The current copyright holders of Latex-Suite are Srinath --- 11,19 ---- [...2321 lines suppressed...] ! bug-reports/fixes. ! 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. ! Zhang Lin-bo lots of very useful additions to folding. The code for ! customizing the folding scheme is due to him. ! A large number of functions in Latex-Suite come from various other people. Some of those people might have been missed here. Each function should however have the author's name/e-mail above it. Thats the more authoritative place to check out who has done what. ! *latex-suite-maintainer* *ls_a_ep* ! The current maintainer(s) of Latex-Suite is(are) |
From: <sri...@us...> - 2003-12-01 05:17:35
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv17943 Modified Files: folding.vim Log Message: Bug: a small bug in initializing g:Tex_FoldedCommands, and adds a few lines to setup g:Tex_FoldedMisc (Zhang Linbo) Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** folding.vim 30 Nov 2003 12:05:19 -0000 1.19 --- folding.vim 1 Dec 2003 05:17:32 -0000 1.20 *************** *** 73,91 **** end " Folding items which are not caught in any of the standard commands, " environments or sections. ! TexLet g:Tex_FoldedMisc = 'item,slide,'. ! \ 'preamble,<<<' - " 1. Use default value if g:Tex_Foldedxxxxxx is not defined - " 2. prepend default value to g:Tex_Foldedxxxxxx if it starts with ',' - " 3. append default value to g:Tex_Foldedxxxxxx if it ends with ',' let s = 'footnote,intertext' if !exists('g:Tex_FoldedCommands') let g:Tex_FoldedCommands = s elseif g:Tex_FoldedCommands[0] == ',' ! let g:Tex_FoldedCommands = s . g:Tex_FoldedCommands[0] elseif g:Tex_FoldedCommands =~ ',$' ! let g:Tex_FoldedCommands = g:Tex_FoldedCommands[0] . s endif --- 73,99 ---- end + " Setup folded items lists g:Tex_Foldedxxxx + " 1. Use default value if g:Tex_Foldedxxxxxx is not defined + " 2. prepend default value to g:Tex_Foldedxxxxxx if it starts with ',' + " 3. append default value to g:Tex_Foldedxxxxxx if it ends with ',' + " Folding items which are not caught in any of the standard commands, " environments or sections. ! let s = 'item,slide,preamble,<<<' ! if !exists('g:Tex_FoldedMisc') ! let g:Tex_FoldedMisc = s ! elseif g:Tex_FoldedMisc[0] == ',' ! let g:Tex_FoldedMisc = s . g:Tex_FoldedMisc ! elseif g:Tex_FoldedMisc =~ ',$' ! let g:Tex_FoldedMisc = g:Tex_FoldedMisc . s ! endif let s = 'footnote,intertext' if !exists('g:Tex_FoldedCommands') let g:Tex_FoldedCommands = s elseif g:Tex_FoldedCommands[0] == ',' ! let g:Tex_FoldedCommands = s . g:Tex_FoldedCommands elseif g:Tex_FoldedCommands =~ ',$' ! let g:Tex_FoldedCommands = g:Tex_FoldedCommands . s endif |
From: <sri...@us...> - 2003-11-30 12:05:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv31291 Modified Files: folding.vim Log Message: Change: Fold \item's first. They are usually nested within environments. (Zhang Linbo) Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** folding.vim 30 Nov 2003 10:36:57 -0000 1.18 --- folding.vim 30 Nov 2003 12:05:19 -0000 1.19 *************** *** 213,216 **** --- 213,229 ---- " }}} + " {{{ items + if g:Tex_FoldedMisc =~ '\<item\>' + call AddSyntaxFoldItem ( + \ '^\s*\\item', + \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}', + \ 0, + \ -1, + \ '^\s*\\begin{\(enumerate\|itemize\|description\)}', + \ '^\s*\\end{\(enumerate\|itemize\|description\)}' + \ ) + endif + " }}} + " {{{ title if g:Tex_FoldedMisc =~ '\<title\>' *************** *** 254,270 **** " }}} - " {{{ items - if g:Tex_FoldedMisc =~ '\<item\>' - call AddSyntaxFoldItem ( - \ '^\s*\\item', - \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}', - \ 0, - \ -1, - \ '^\s*\\begin{\(enumerate\|itemize\|description\)}', - \ '^\s*\\end{\(enumerate\|itemize\|description\)}' - \ ) - endif - " }}} - " Sections {{{ if g:Tex_FoldedSections != '' --- 267,270 ---- *************** *** 299,303 **** " Manually folded regions {{{ ! if g:Tex_FoldedMisc = '\(^\|,\)<<<\(,\|$\)' call AddSyntaxFoldItem ( \ '<<<', --- 299,303 ---- " Manually folded regions {{{ ! if g:Tex_FoldedMisc =~ '\(^\|,\)<<<\(,\|$\)' call AddSyntaxFoldItem ( \ '<<<', |
From: <sri...@us...> - 2003-11-30 10:37:02
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv18597 Modified Files: folding.vim Log Message: Change: Remove the comment folding from the default folding scheme. Change: The TexFoldTextFunction had a few problems with creating fold text for comments with the : character in them. The best way seems to be to just substitute the first : character with ': %'. Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** folding.vim 30 Nov 2003 09:52:15 -0000 1.17 --- folding.vim 30 Nov 2003 10:36:57 -0000 1.18 *************** *** 13,17 **** augroup LatexSuite au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('folding.vim: catching LatexSuiteFileType') | \ call Tex_SetFoldOptions() augroup END --- 13,17 ---- augroup LatexSuite au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('folding.vim: catching LatexSuiteFileType', 'fold') | \ call Tex_SetFoldOptions() augroup END *************** *** 75,79 **** " Folding items which are not caught in any of the standard commands, " environments or sections. ! TexLet g:Tex_FoldedMisc = 'comments,item,slide,'. \ 'preamble,<<<' --- 75,79 ---- " Folding items which are not caught in any of the standard commands, " environments or sections. ! TexLet g:Tex_FoldedMisc = 'item,slide,'. \ 'preamble,<<<' *************** *** 340,352 **** end ! let retText = matchstr(ftxto, '^[^:]*').': "'.header ! \.'" ('.label.') : '.caption return retText elseif getline(v:foldstart) =~ '^%' && getline(v:foldstart) !~ '^%%fake' let ftxto = foldtext() ! return matchstr(ftxto, '^[^:]*').': Comments ' elseif getline(v:foldstart) =~ '^\s*\\document\(class\|style\).*{' let ftxto = foldtext() ! return matchstr(ftxto, '^[^:]*').': Preamble:'.matchstr(ftxto, '[^:]*$') else return foldtext() --- 340,352 ---- end ! let retText = matchstr(ftxto, '^[^:]*').': '.header. ! \ ' ('.label.') : '.caption return retText elseif getline(v:foldstart) =~ '^%' && getline(v:foldstart) !~ '^%%fake' let ftxto = foldtext() ! return substitute(ftxto, ':', ': % ', '') elseif getline(v:foldstart) =~ '^\s*\\document\(class\|style\).*{' let ftxto = foldtext() ! return substitute(ftxto, ':', ': Preamble: ', '') else return foldtext() |
From: <sri...@us...> - 2003-11-30 10:05:40
|
Update of /cvsroot/vim-latex/vimfiles In directory sc8-pr-cvs1:/tmp/cvs-serv14373 Modified Files: makefile Log Message: The new changelog: target which utilizes cvs2cl to automatically generate the Changelog. Index: makefile =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/makefile,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** makefile 3 Sep 2003 07:00:33 -0000 1.18 --- makefile 30 Nov 2003 10:05:35 -0000 1.19 *************** *** 89,92 **** --- 89,100 ---- $(SSHCMD) $(CVSUSER)@vim-latex.sf.net /home/groups/v/vi/vim-latex/bin/uphtdocs + # Automatically generate the Changelog file using the cvs2cl utility + # + # Arguments: + # -S add a seperating line between filename and log + # --no-wrap Do not attempt to format the Changelog comments + # -f file to write the Changelog to. + changelog: + cvs2cl -S --no-wrap -f ftplugin/latex-suite/Changelog # rsync is like cp (copy) on steroids. Here are some useful options: |
From: <sri...@us...> - 2003-11-30 10:02:42
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv14036 Modified Files: ChangeLog Log Message: The first Changelog generated automatically via cvs2cl. Simply use the changelog target in the makefile to generate it again. Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ChangeLog 16 Nov 2003 09:28:00 -0000 1.14 --- ChangeLog 30 Nov 2003 10:02:38 -0000 1.15 *************** *** 1,290 **** ! Nov 16 2003 ! BugFixes: ! * envmacros.vim: ! Tex_thebibliography command did not respect the g:Tex_UseMenuWizard ! setting. (SA) ! * folding.vim: ! New folding items (Aditya Mahajan, SA) ! * main.vim,compiler.vim,multicompile.vim,pytools.vim: ! Rearrangement of code within latex-suite to make it more consistent ! with the rest of the project. multicompile.vim is no longer required. [...5459 lines suppressed...] ! ftplugin/latex-suite/wizardfuncs.vim, ! ftplugin/latex-suite/dictionaries/SIunits, ! ftplugin/latex-suite/dictionaries/dictionary, ! ftplugin/latex-suite/macros/example, ! ftplugin/latex-suite/packages/cite, ! ftplugin/latex-suite/packages/exmpl, ! ftplugin/latex-suite/packages/geometry, ! ftplugin/latex-suite/packages/hyperref, ! ftplugin/latex-suite/packages/lineno, ! ftplugin/latex-suite/packages/manyfoot, ! ftplugin/latex-suite/packages/polski, ! ftplugin/latex-suite/packages/SIunits, ! ftplugin/latex-suite/templates/article.tex, ! ftplugin/latex-suite/templates/report.tex, ! ftplugin/latex-suite/templates/report_two_column.tex, ! indent/tex.vim, plugin/SyntaxFolds.vim, plugin/imaps.vim, ! plugin/libList.vim: ! ! Initial revision |
From: <sri...@us...> - 2003-11-30 09:52:18
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv12376 Modified Files: folding.vim Log Message: Use the new Tex_MakeMap function in main.vim Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** folding.vim 30 Nov 2003 02:43:01 -0000 1.16 --- folding.vim 30 Nov 2003 09:52:15 -0000 1.17 *************** *** 31,37 **** endif ! if g:Tex_Folding && !hasmapto('<Plug>Tex_RefreshFolds') ! nmap <silent> <buffer> <Leader>rf <Plug>Tex_RefreshFolds ! endif endfunction " }}} --- 31,37 ---- endif ! let s:ml = exists('g:mapleader') ? g:mapleader : "\\" ! ! call Tex_MakeMap(s:ml."rf", "<Plug>Tex_RefreshFolds", 'n', '<silent> <buffer>') endfunction " }}} |
From: <sri...@us...> - 2003-11-30 09:51:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv12236 Modified Files: envmacros.vim Log Message: Change: Use the new Tex_MakeMap function from main.vim to simplify the code a little. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** envmacros.vim 11 Nov 2003 15:37:11 -0000 1.39 --- envmacros.vim 30 Nov 2003 09:51:24 -0000 1.40 *************** *** 854,872 **** function! Tex_SetFastEnvironmentMaps() if g:Tex_PromptedEnvironments != '' ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'i') ! imap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'n') ! nmap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentChange', 'i') ! imap <silent> <buffer> <S-F5> <Plug>Tex_FastEnvironmentChange ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentChange', 'n') ! nmap <silent> <buffer> <S-F5> <Plug>Tex_FastEnvironmentChange ! endif ! if !hasmapto('<Plug>Tex_FastEnvironmentInsert', 'v') ! vmap <silent> <buffer> <F5> <Plug>Tex_FastEnvironmentInsert ! endif endif if g:Tex_HotKeyMappings != '' --- 854,862 ---- function! Tex_SetFastEnvironmentMaps() if g:Tex_PromptedEnvironments != '' ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'i', '<silent> <buffer>') ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'n', '<silent> <buffer>') ! call Tex_MakeMap("<F5>", "<Plug>Tex_FastEnvironmentInsert", 'v', '<silent> <buffer>') ! call Tex_MakeMap("<S-F5>", "<Plug>Tex_FastEnvironmentChange", 'i', '<silent> <buffer>') ! call Tex_MakeMap("<S-F5>", "<Plug>Tex_FastEnvironmentChange", 'n', '<silent> <buffer>') endif if g:Tex_HotKeyMappings != '' *************** *** 911,919 **** function! Tex_SetItemMaps() ! if !hasmapto("\<Plug>Tex_InsertItem") ! imap <buffer> <Leader>it <Plug>Tex_InsertItemOnThisLine imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine endif ! if !hasmapto("\<Plug>Tex_InsertItemOnNextLine") imap <buffer> <C-CR> <Plug>Tex_InsertItemOnNextLine endif --- 901,908 ---- function! Tex_SetItemMaps() ! if !hasmapto("<Plug>Tex_InsertItem") imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine endif ! if !hasmapto("<Plug>Tex_InsertItemOnNextLine") imap <buffer> <C-CR> <Plug>Tex_InsertItemOnNextLine endif |
From: <sri...@us...> - 2003-11-30 09:49:54
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11883 Modified Files: compiler.vim Log Message: New: Provide <Plug> mappings for the various compiler maps so the user can remap to other keys if they feel like it. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** compiler.vim 30 Nov 2003 03:41:46 -0000 1.53 --- compiler.vim 30 Nov 2003 09:49:51 -0000 1.54 *************** *** 736,744 **** return endif ! nnoremap <buffer> <Leader>ll :call Tex_RunLaTeX()<cr> ! vnoremap <buffer> <Leader>ll :call Tex_PartCompile()<cr> ! nnoremap <buffer> <Leader>lv :call Tex_ViewLaTeX()<cr> ! nnoremap <buffer> <Leader>ls :call Tex_ForwardSearchLaTeX()<cr> endfunction " }}} --- 736,750 ---- return endif ! let s:ml = exists('g:mapleader') ? g:mapleader : "\\" ! ! nnoremap <buffer> <Plug>Tex_Compile :call Tex_RunLaTeX()<cr> ! vnoremap <buffer> <Plug>Tex_Compile :call Tex_PartCompile()<cr> ! nnoremap <buffer> <Plug>Tex_View :call Tex_ViewLaTeX()<cr> ! nnoremap <buffer> <Plug>Tex_ForwardSearch :call Tex_ForwardSearchLaTeX()<cr> + call Tex_MakeMap(s:ml."ll", "<Plug>Tex_Compile", 'n', '<buffer>') + call Tex_MakeMap(s:ml."ll", "<Plug>Tex_Compile", 'v', '<buffer>') + call Tex_MakeMap(s:ml."lv", "<Plug>Tex_View", 'n', '<buffer>') + call Tex_MakeMap(s:ml."ls", "<Plug>Tex_ForwardSearch", 'ls', '<buffer>') endfunction " }}} |
From: <sri...@us...> - 2003-11-30 09:48:12
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv11623 Modified Files: main.vim Log Message: New: A function Tex_MakeMap (not meant to be used by the end-user), which is used to create mappings from an LHS to RHS if a mapping does not exist already for RHS. basically a way to simplify writing the:: if !hasmapto(...) nmap ... endif stuff over and over again. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** main.vim 7 Nov 2003 02:11:50 -0000 1.53 --- main.vim 30 Nov 2003 09:48:08 -0000 1.54 *************** *** 670,673 **** --- 670,680 ---- endfunction " }}} + " Tex_MakeMap: creates a mapping from lhs to rhs if rhs is not already mapped {{{ + " Description: + function! Tex_MakeMap(lhs, rhs, mode, extraargs) + if !hasmapto(a:rhs, a:mode) + exec a:mode.'map '.a:extraargs.' '.a:lhs.' '.a:rhs + endif + endfunction " }}} " source texproject.vim before other files |
From: <sri...@us...> - 2003-11-30 03:41:49
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv30234 Modified Files: compiler.vim Log Message: Change: A little more debugging statements thrown in. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** compiler.vim 16 Nov 2003 03:19:03 -0000 1.52 --- compiler.vim 30 Nov 2003 03:41:46 -0000 1.53 *************** *** 267,276 **** " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! exec '!start' s:viewer mainfname . '.' . s:target elseif has('macunix') if strlen(s:viewer) let s:viewer = '-a ' . s:viewer endif ! execute '!open' s:viewer mainfname . '.' . s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). --- 267,276 ---- " editor from the command line. that would have really helped ensure " that this particular vim and yap are connected. ! let execString = '!start' s:viewer mainfname . '.' . s:target elseif has('macunix') if strlen(s:viewer) let s:viewer = '-a ' . s:viewer endif ! let execString = 'silent! !open' s:viewer mainfname . '.' . s:target else " taken from Dimitri Antoniou's tip on vim.sf.net (tip #225). *************** *** 284,302 **** \ exists('v:servername') && \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! exec '!'.s:viewer.' -editor "gvim --servername '.v:servername.' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ s:viewer == "kdvi" ! exec '!kdvi --unique '.mainfname.'.dvi &' else ! exec '!'.s:viewer.' '.mainfname.'.dvi &' endif redraw! else ! exec '!'.s:viewer.' '.mainfname.'.'.s:target.' &' redraw! endif end exec 'cd '.curd endfunction --- 284,309 ---- \ exists('v:servername') && \ (s:viewer == "xdvi" || s:viewer == "xdvik") ! let execString = 'silent! !'.s:viewer.' -editor "gvim --servername '.v:servername. ! \ ' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ s:viewer == "kdvi" ! let execString = 'silent! !kdvi --unique '.mainfname.'.dvi &' else ! let execString = 'silent! !'.s:viewer.' '.mainfname.'.dvi &' endif redraw! else ! let execString = 'silent! !'.s:viewer.' '.mainfname.'.'.s:target.' &' redraw! endif end + call Tex_Debug("Tex_ViewLaTeX: execString = ".execString, "comp") + execute execString + if !has('gui_running') + redraw! + endif + exec 'cd '.curd endfunction *************** *** 339,343 **** " tips on vim.sf.net (vim.sf.net tip #225) if has('win32') ! exec '!start '.viewer.' -s '.line('.').expand('%:p:t').' '.mainfname else if exists('g:Tex_UseEditorSettingInDVIViewer') && --- 346,350 ---- " tips on vim.sf.net (vim.sf.net tip #225) if has('win32') ! let execString = 'silent! !start '.viewer.' -s '.line('.').expand('%:p:t').' '.mainfname else if exists('g:Tex_UseEditorSettingInDVIViewer') && *************** *** 345,358 **** \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") ! exec '!'.viewer.' -name xdvi -sourceposition '.line('.').expand('%').' -editor "gvim --servername '.v:servername.' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ viewer == "kdvi" ! exec '!kdvi --unique file:'.mainfname.'.dvi\#src:'.line('.').Tex_GetMainFileName(":p:t:r").' &' else ! exec '!'.viewer.' -name xdvi -sourceposition '.line('.').expand('%').' '.mainfname.'.dvi &' endif - redraw! end exec 'cd '.curd --- 352,372 ---- \ exists('v:servername') && \ (viewer == "xdvi" || viewer == "xdvik") ! let execString = '!'.viewer.' -name xdvi -sourceposition '.line('.').expand('%'). ! \ ' -editor "gvim --servername '.v:servername. ! \ ' --remote-silent +\%l \%f" '.mainfname.'.dvi &' elseif exists('g:Tex_UseEditorSettingInDVIViewer') && \ g:Tex_UseEditorSettingInDVIViewer == 1 && \ viewer == "kdvi" ! let execString = 'silent! !kdvi --unique file:'.mainfname.'.dvi\#src:'.line('.').Tex_GetMainFileName(":p:t:r").' &' else ! let execString = 'silent! !'.viewer.' -name xdvi -sourceposition '.line('.').expand('%').' '.mainfname.'.dvi &' endif end + + call Tex_Debug("Tex_ForwardSearchLaTeX: execString = ".execString, "comp") + execute execString + if !has('gui_running') + redraw! + endif exec 'cd '.curd |
From: <sri...@us...> - 2003-11-30 02:43:05
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv21867 Modified Files: folding.vim Log Message: Change: delete title from the default g:Tex_FoldMisc setting. (Zhang Linbo) Change: moved the processing of the 'title' command before other standard commands/environments, otherwise it might be obsoleted by the 'titlepage' environment (Zhang Linbo) Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** folding.vim 29 Nov 2003 09:53:50 -0000 1.15 --- folding.vim 30 Nov 2003 02:43:01 -0000 1.16 *************** *** 76,80 **** " environments or sections. TexLet g:Tex_FoldedMisc = 'comments,item,slide,'. ! \ 'preamble,title,<<<' " 1. Use default value if g:Tex_Foldedxxxxxx is not defined --- 76,80 ---- " environments or sections. TexLet g:Tex_FoldedMisc = 'comments,item,slide,'. ! \ 'preamble,<<<' " 1. Use default value if g:Tex_Foldedxxxxxx is not defined *************** *** 212,216 **** endif " }}} ! " Commands and Environments {{{ " Fold the commands and environments in 2 passes. --- 212,227 ---- endif " }}} ! ! " {{{ title ! if g:Tex_FoldedMisc =~ '\<title\>' ! call AddSyntaxFoldItem ( ! \ '^\s*\\title\W', ! \ '^\s*\\maketitle', ! \ 0, ! \ 0 ! \ ) ! endif ! " }}} ! " Commands and Environments {{{ " Fold the commands and environments in 2 passes. *************** *** 287,301 **** " }}} - " {{{ title - if g:Tex_FoldedMisc =~ '\<title\>' - call AddSyntaxFoldItem ( - \ '^\s*\\title\W', - \ '\\maketitle', - \ 0, - \ 0 - \ ) - endif - " }}} - " Manually folded regions {{{ if g:Tex_FoldedMisc = '\(^\|,\)<<<\(,\|$\)' --- 298,301 ---- |
From: <sri...@us...> - 2003-11-29 09:53:53
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20312 Modified Files: folding.vim Log Message: New: Some cool new additions by Zhang Linbo: + add fold definitions for certain environments. + add fold description for fold markers, title, preamble etc which were not there previously. All these fold definitions are now customizable to a large degree by using various global settings of the form g:Tex_FoldedCommands g:Tex_FoldedEnvironments g:Tex_FoldedSections g:Tex_FoldedMisc Index: folding.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/folding.vim,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** folding.vim 25 Nov 2003 06:56:42 -0000 1.14 --- folding.vim 29 Nov 2003 09:53:50 -0000 1.15 *************** *** 2,6 **** " File: folding.vim " Author: Srinath Avadhanula ! " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST " --- 2,7 ---- " File: folding.vim " Author: Srinath Avadhanula ! " modifications/additions by Zhang Linbo ! " CVS: $Id$ " Created: Tue Apr 23 05:00 PM 2002 PST " *************** *** 35,43 **** endfunction " }}} " MakeTexFolds: function to create fold items for latex. {{{ " " used in conjunction with MakeSyntaxFolds(). " see ../plugin/syntaxFolds.vim for documentation - " function! MakeTexFolds(force) if exists('g:Tex_Folding') && !g:Tex_Folding --- 36,68 ---- endfunction " }}} + " FoldSections: creates section folds {{{ + " Author: Zhang Linbo + " Description: + " This function takes a comma seperated list of "sections" and creates fold + " definitions for them. The first item is supposed to be the "shallowest" field + " and the last is the "deepest". See g:Tex_FoldedSections for the default + " definition of the lst input argument. + " + " **works recursively** + function! FoldSections(lst, endpat) + let i = match(a:lst, ',') + if i > 0 + let s = strpart(a:lst, 0, i) + else + let s = a:lst + endif + let s = '^\s*\\' . s . '\W' + let endpat = s . '\|' . a:endpat + if i > 0 + call FoldSections(strpart(a:lst,i+1), endpat) + endif + let endpat = '^\s*\\appendix\W\|' . endpat + call AddSyntaxFoldItem(s, endpat, 0, -1) + endfunction + " }}} " MakeTexFolds: function to create fold items for latex. {{{ " " used in conjunction with MakeSyntaxFolds(). " see ../plugin/syntaxFolds.vim for documentation function! MakeTexFolds(force) if exists('g:Tex_Folding') && !g:Tex_Folding *************** *** 48,51 **** --- 73,108 ---- end + " Folding items which are not caught in any of the standard commands, + " environments or sections. + TexLet g:Tex_FoldedMisc = 'comments,item,slide,'. + \ 'preamble,title,<<<' + + " 1. Use default value if g:Tex_Foldedxxxxxx is not defined + " 2. prepend default value to g:Tex_Foldedxxxxxx if it starts with ',' + " 3. append default value to g:Tex_Foldedxxxxxx if it ends with ',' + let s = 'footnote,intertext' + if !exists('g:Tex_FoldedCommands') + let g:Tex_FoldedCommands = s + elseif g:Tex_FoldedCommands[0] == ',' + let g:Tex_FoldedCommands = s . g:Tex_FoldedCommands[0] + elseif g:Tex_FoldedCommands =~ ',$' + let g:Tex_FoldedCommands = g:Tex_FoldedCommands[0] . s + endif + + let s = 'verbatim,comment,eq,gather,align,figure,table,thebibliography,' + \. 'keywords,abstract,titlepage' + if !exists('g:Tex_FoldedEnvironments') + let g:Tex_FoldedEnvironments = s + elseif g:Tex_FoldedEnvironments[0] == ',' + let g:Tex_FoldedEnvironments = s . g:Tex_FoldedEnvironments + elseif g:Tex_FoldedEnvironments =~ ',$' + let g:Tex_FoldedEnvironments = g:Tex_FoldedEnvironments . s + endif + + if !exists('g:Tex_FoldedSections') + let g:Tex_FoldedSections = 'slide,part,chapter,section,%%fakesection,' + \. 'subsection,subsubsection,paragraph' + endif + " the order in which these calls are made decides the nestedness. in " latex, a table environment will always be embedded in either an item or *************** *** 144,286 **** " }}} " ======================================================================== ! " {{{ footnote ! call AddSyntaxFoldItem ( ! \ '^\s*\\footnote{', ! \ '^\s*}', ! \ 0, ! \ 0 ! \ ) ! " }}} ! " {{{ 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 ! \ ) ! " }}} ! " {{{ thebibliography ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{thebibliography}', ! \ '^\s*\\end{thebibliography}', ! \ 0, ! \ 0 ! \ ) ! " }}} ! " {{{ table ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{table}', ! \ '^\s*\\end{table}', ! \ 0, ! \ 0 ! \ ) ! " }}} ! " {{{ figure ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{figure', ! \ '^\s*\\end{figure}', ! \ 0, ! \ 0 ! \ ) ! " }}} ! " {{{ align/alignat ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{align', ! \ '^\s*\\end{align', ! \ 0, ! \ 0 ! \ ) ! " }}} ! " {{{ gather ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{gather', ! \ '^\s*\\end{gather', ! \ 0, ! \ 0 ! \ ) " }}} ! " {{{ equation/eqnarray ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{eq', ! \ '^\s*\\end{eq', ! \ 0, ! \ 0 ! \ ) " }}} " {{{ items ! call AddSyntaxFoldItem ( ! \ '^\s*\\item', ! \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}', ! \ 0, ! \ -1, ! \ '^\s*\\begin{\(enumerate\|itemize\|description\)}', ! \ '^\s*\\end{\(enumerate\|itemize\|description\)}' ! \ ) ! " }}} ! " {{{ subsubsection ! call AddSyntaxFoldItem ( ! \ '^\s*\\subsubsection\W', ! \ '^\s*\\appendix\W\|^\s*\\subsubsection\W\|^\s*\\subsection\W\|^\s*\\section\W\|^\s*%%fakesection\|^\s*\\chapter\W\|^\s*\\begin{slide\|^\s*\\end{document', ! \ 0, ! \ -1, ! \ ) ! " }}} ! " {{{ subsection ! 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, ! \ ) " }}} ! " {{{ section ! 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, ! \ ) " }}} ! " {{{ fakesection (for forcing a fold item manually) ! 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, ! \ ) " }}} ! " {{{ chapter ! call AddSyntaxFoldItem( ! \ '^\s*\\chapter\W', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\bibliography\|^\s*\\begin{slide\|^\s*\\begin{thebibliography\|^\s*\\end{document', ! \ 0, ! \ -1 ! \ ) " }}} ! " {{{ slide ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{slide', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\end{slide\|^\s*\\end{document', ! \ 0, ! \ 0 ! \ ) " }}} ! call MakeSyntaxFolds(a:force) normal! zv --- 201,312 ---- " }}} " ======================================================================== ! ! " {{{ comment lines ! if g:Tex_FoldedMisc =~ '\<comments\>' ! call AddSyntaxFoldItem ( ! \ '^%\([^%]\|[^f]\|[^a]\|[^k]\|[^e]\)', ! \ '^[^%]', ! \ 0, ! \ -1 ! \ ) ! endif " }}} ! ! " Commands and Environments {{{ ! " Fold the commands and environments in 2 passes. ! let pass = 0 ! while pass < 2 ! if pass == 0 ! let lst = g:Tex_FoldedCommands ! else ! let lst = g:Tex_FoldedEnvironments ! endif ! while lst != '' ! let i = match(lst, ',') ! if i > 0 ! let s = strpart(lst, 0, i) ! let lst = strpart(lst, i+1) ! else ! let s = lst ! let lst = '' ! endif ! if s != '' ! if pass == 0 ! call AddSyntaxFoldItem('^\s*\\'.s.'{','^\s*}',0,0) ! else ! call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0) ! endif ! endif ! endwhile ! let pass = pass + 1 ! endwhile " }}} + " {{{ items ! if g:Tex_FoldedMisc =~ '\<item\>' ! call AddSyntaxFoldItem ( ! \ '^\s*\\item', ! \ '^\s*\\item\|^\s*\\end{\(enumerate\|itemize\|description\)}', ! \ 0, ! \ -1, ! \ '^\s*\\begin{\(enumerate\|itemize\|description\)}', ! \ '^\s*\\end{\(enumerate\|itemize\|description\)}' ! \ ) ! endif " }}} ! ! " Sections {{{ ! if g:Tex_FoldedSections != '' ! call FoldSections(g:Tex_FoldedSections, ! \ '^\s*\\frontmatter\|^\s*\\mainmatter\|^\s*\\backmatter\|' ! \. '^\s*\\begin{thebibliography\|>>>\|^\s*\\endinput\|' ! \. '^\s*\\end{document') ! endif ! " }}} ! ! " {{{ slide ! if g:Tex_FoldedMisc =~ '\<slide\>' ! call AddSyntaxFoldItem ( ! \ '^\s*\\begin{slide', ! \ '^\s*\\appendix\W\|^\s*\\chapter\W\|^\s*\\end{slide\|^\s*\\end{document', ! \ 0, ! \ 0 ! \ ) ! endif " }}} ! ! " {{{ preamble ! if g:Tex_FoldedMisc =~ '\<preamble\>' ! call AddSyntaxFoldItem ( ! \ '^\s*\\document\(class\|style\).*{', ! \ '^\s*\\begin{document}', ! \ 0, ! \ -1 ! \ ) ! endif " }}} ! ! " {{{ title ! if g:Tex_FoldedMisc =~ '\<title\>' ! call AddSyntaxFoldItem ( ! \ '^\s*\\title\W', ! \ '\\maketitle', ! \ 0, ! \ 0 ! \ ) ! endif " }}} ! ! " Manually folded regions {{{ ! if g:Tex_FoldedMisc = '\(^\|,\)<<<\(,\|$\)' ! call AddSyntaxFoldItem ( ! \ '<<<', ! \ '>>>', ! \ 0, ! \ 0 ! \ ) ! endif " }}} ! call MakeSyntaxFolds(a:force) normal! zv *************** *** 291,296 **** 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 = '' let label = '' --- 317,322 ---- function! TexFoldTextFunction() if getline(v:foldstart) =~ '^\s*\\begin{' ! let header = matchstr(getline(v:foldstart), ! \ '^\s*\\begin{\zs\([:alpha:]*\)[^}]*\ze}') let caption = '' let label = '' *************** *** 314,319 **** end ! let retText = matchstr(ftxto, '^[^:]*').': '.header.' ('.label.') : '.caption return retText else return foldtext() --- 340,352 ---- end ! let retText = matchstr(ftxto, '^[^:]*').': "'.header ! \.'" ('.label.') : '.caption return retText + elseif getline(v:foldstart) =~ '^%' && getline(v:foldstart) !~ '^%%fake' + let ftxto = foldtext() + return matchstr(ftxto, '^[^:]*').': Comments ' + elseif getline(v:foldstart) =~ '^\s*\\document\(class\|style\).*{' + let ftxto = foldtext() + return matchstr(ftxto, '^[^:]*').': Preamble:'.matchstr(ftxto, '[^:]*$') else return foldtext() |
From: <mi...@us...> - 2003-11-26 11:19:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv8539 Modified Files: texviewer.vim Log Message: Bug: Folds in preview window are closed (Alan Schmitt) Solution: Use nofoldenable, foldlevel=10 wasn't enough (MM) Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/texviewer.vim,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** texviewer.vim 2 Sep 2003 07:15:30 -0000 1.32 --- texviewer.vim 26 Nov 2003 11:19:01 -0000 1.33 *************** *** 400,404 **** " Settings of preview window exe g:Tex_ViewerPreviewHeight.' wincmd _' ! setlocal foldlevel=10 if exists('s:type') && s:type =~ 'cite' --- 400,404 ---- " Settings of preview window exe g:Tex_ViewerPreviewHeight.' wincmd _' ! setlocal nofoldenable if exists('s:type') && s:type =~ 'cite' |
From: <sri...@us...> - 2003-11-26 05:54:18
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv24110 Modified Files: Tag: release-1-5 imaps.vim Log Message: backport from main trunk. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.33.2.1 retrieving revision 1.33.2.2 diff -C2 -d -r1.33.2.1 -r1.33.2.2 *** imaps.vim 13 Nov 2003 09:35:45 -0000 1.33.2.1 --- imaps.vim 26 Nov 2003 05:54:15 -0000 1.33.2.2 *************** *** 697,701 **** endif let textEnc = iconv(a:text, "latin1", "utf8") ! if textEnc !~ '\V\^' . escape(a:text, '\') . '\$'' call IMAP_Debug('Encoding problems with text '.a:text.' ', 'imap') endif --- 697,701 ---- endif let textEnc = iconv(a:text, "latin1", "utf8") ! if textEnc !~ '\V\^' . escape(a:text, '\') . '\$' call IMAP_Debug('Encoding problems with text '.a:text.' ', 'imap') endif |
From: <sri...@us...> - 2003-11-26 05:45:55
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv22741 Modified Files: imaps.vim Log Message: Bug: When &enc==utf8 and g:Imap_PlaceHolder* settings are not lower-ascii, then we would get an error when we used any of the IMAP functions! Why: A silly little bug. An extra quote Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** imaps.vim 14 Nov 2003 10:37:56 -0000 1.35 --- imaps.vim 26 Nov 2003 05:45:46 -0000 1.36 *************** *** 700,704 **** endif let textEnc = iconv(a:text, "latin1", "utf8") ! if textEnc !~ '\V\^' . escape(a:text, '\') . '\$'' call IMAP_Debug('Encoding problems with text '.a:text.' ', 'imap') endif --- 700,704 ---- endif let textEnc = iconv(a:text, "latin1", "utf8") ! if textEnc !~ '\V\^' . escape(a:text, '\') . '\$' call IMAP_Debug('Encoding problems with text '.a:text.' ', 'imap') endif |