vim-latex-cvs Mailing List for Vim-Latex (Page 11)
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...> - 2004-05-16 21:36:00
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv575 Modified Files: ChangeLog Log Message: Index: ChangeLog =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/ChangeLog,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ChangeLog 30 Nov 2003 10:02:38 -0000 1.15 --- ChangeLog 16 May 2004 21:35:51 -0000 1.16 *************** *** 1,3 **** ! 2003-11-30 10:52 srinathava * ftplugin/latex-suite/folding.vim: --- 1,554 ---- ! 2004-05-16 11:42 srinathava ! ! * doc/latex-suite.xml: ! ! New: documentation for the new functionality of completing \ref's. ! [...7687 lines suppressed...] * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, --- 5630,5634 ---- . makefile for generating .zip file. ! 2002-04-29 17:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, *************** *** 5162,5166 **** . importing latex-suite to sf.net ! 2002-04-30 02:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, --- 5665,5669 ---- . importing latex-suite to sf.net ! 2002-04-29 17:03 srinathava * latextags, vimlatex, compiler/tex.vim, doc/latex-suite.txt, |
From: <sri...@us...> - 2004-05-16 18:42:58
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30020 Modified Files: latex-suite.txt Log Message: Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** latex-suite.txt 9 May 2004 22:11:49 -0000 1.53 --- latex-suite.txt 16 May 2004 18:42:48 -0000 1.54 *************** *** 1292,1298 **** To complete a |\ref| command, position yourself between the curly braces of a \ref command and press <F9>. For example, you can press <F9> just after \ref{ or ! after \ref{eqn:. Latex-Suite will search for \label's in all tex files in the ! current directory and display the results in two windows as desribed in section ! [|ls_a_bO|]. Any command which contains the pattern ref in it is treated as if it is a way to --- 1292,1301 ---- To complete a |\ref| command, position yourself between the curly braces of a \ref command and press <F9>. For example, you can press <F9> just after \ref{ or ! after \ref{eqn:. Latex-Suite will search for \label's in the main file ! corresponding to the file being presently edited and display the results in two ! windows as desribed in section [|ls_a_bO|]. See latex-master-file [|ls_a_bY|] ! for a description of how Latex-Suite finds out which file is the master file ! corresponding to the current file. Latex-Suite will also search recursively for ! \label's in all files \include'd or \input'ed in the master file. Any command which contains the pattern ref in it is treated as if it is a way to |
From: <sri...@us...> - 2004-05-16 18:42:36
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29972 Modified Files: latex-suite.xml Log Message: New: documentation for the new functionality of completing \ref's. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** latex-suite.xml 9 May 2004 22:11:48 -0000 1.32 --- latex-suite.xml 16 May 2004 18:42:26 -0000 1.33 *************** *** 1546,1553 **** <literal><F9></literal> just after <literal>\ref{</literal> or after <literal>\ref{eqn:</literal>. &ls; will search for ! <literal>\label</literal>'s in all tex files in the current directory ! and display the results in two windows as desribed in section <link linkend="ls-completion-usage" endterm="ls-completion-usage.title"></link>. </para> <para> --- 1546,1560 ---- <literal><F9></literal> just after <literal>\ref{</literal> or after <literal>\ref{eqn:</literal>. &ls; will search for ! <literal>\label</literal>'s in the main file corresponding to the file ! being presently edited and display the results in two windows as ! desribed in section <link linkend="ls-completion-usage" endterm="ls-completion-usage.title"></link>. + See <link linkend="latex-master-file">latex-master-file</link> for a + description of how &ls; finds out which file is the master file + corresponding to the current file. &ls; will also search recursively + for <literal>\label</literal>'s in all files + <literal>\include</literal>'d or <literal>\input</literal>'ed in the + master file. </para> <para> |
From: <sri...@us...> - 2004-05-16 17:43:20
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16495 Modified Files: multicompile.vim Log Message: Index: multicompile.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/multicompile.vim,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** multicompile.vim 7 Nov 2003 02:11:50 -0000 1.10 --- multicompile.vim 16 May 2004 17:43:11 -0000 1.11 *************** *** 12,17 **** " The contents of this file have been moved to compiler.vim, the file which " contains all functions relevant to compiling and viewing. ! finish ! " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 --- 12,17 ---- " The contents of this file have been moved to compiler.vim, the file which " contains all functions relevant to compiling and viewing. ! " This file is kept empty on purpose so that it will over-write previous ! " versions of multicompile.vim, therby preventing conflicts. " vim:fdm=marker:nowrap:noet:ff=unix:ts=4:sw=4 |
From: <sri...@us...> - 2004-05-16 17:42:00
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16219 Modified Files: compiler.vim Log Message: Bug: Part compilation doesn't work because the temporary file created does not include the preamble of the original main file. Why: We used Tex_GetMainFileName(':p:r') from before the time Tex_GetMainFileName was changed. Fix: Use Tex_GetMainFileName(':p') instead. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** compiler.vim 14 May 2004 17:37:29 -0000 1.62 --- compiler.vim 16 May 2004 17:41:49 -0000 1.63 *************** *** 396,400 **** " compile it. function! Tex_PartCompile() range ! call Tex_Debug('getting to Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' --- 396,400 ---- " compile it. function! Tex_PartCompile() range ! call Tex_Debug('+Tex_PartCompile', 'comp') " Save position let pos = line('.').' | normal! '.virtcol('.').'|' *************** *** 426,430 **** " If mainfile exists open it in tiny window and extract preamble there, " otherwise do it from current file ! let mainfile = Tex_GetMainFileName(":p:r") exe 'bot 1 split '.escape(mainfile, ' ') exe '1,/\s*\\begin{document}/w '.tmpfile --- 426,430 ---- " If mainfile exists open it in tiny window and extract preamble there, " otherwise do it from current file ! let mainfile = Tex_GetMainFileName(":p") exe 'bot 1 split '.escape(mainfile, ' ') exe '1,/\s*\\begin{document}/w '.tmpfile |
From: <sri...@us...> - 2004-05-16 17:38:52
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15503 Modified Files: texviewer.vim Log Message: New: Instead of searching for \\label's in all the .tex files in the present directory, only search in the mainfile and all the included files. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** texviewer.vim 9 May 2004 22:43:00 -0000 1.3 --- texviewer.vim 16 May 2004 17:38:41 -0000 1.4 *************** *** 63,67 **** " Thus " s:curline = '\psfig[option=value]{figure=' ! " (with possibly some junk before \includegraphics) " from which we need to extract " s:type = 'psfig' --- 63,67 ---- " Thus " s:curline = '\psfig[option=value]{figure=' ! " (with possibly some junk before \psfig) " from which we need to extract " s:type = 'psfig' *************** *** 76,80 **** if exists("s:type") && s:type =~ 'ref' call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! exec "silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex" redraw! call <SID>Tex_SetupCWindow() --- 76,81 ---- if exists("s:type") && s:type =~ 'ref' call Tex_Debug("silent! grep! ".Tex_EscapeForGrep('\\label{'.s:prefix)." *.tex", 'view') ! silent! grep! ____HIGHLY_IMPROBABLE___ % ! call Tex_GrepHelper(s:prefix, 'label') redraw! call <SID>Tex_SetupCWindow() *************** *** 91,96 **** call <SID>Tex_SetupCWindow(s:citeSearchHistory) else ! call Tex_Debug('calling Tex_GrepForBibItems', 'view') ! call Tex_GrepForBibItems(s:prefix) redraw! call <SID>Tex_SetupCWindow() --- 92,97 ---- call <SID>Tex_SetupCWindow(s:citeSearchHistory) else ! call Tex_Debug('calling Tex_GrepHelper', 'view') ! call Tex_GrepHelper(s:prefix, 'bib') redraw! call <SID>Tex_SetupCWindow() *************** *** 258,262 **** " ============================================================================== ! " Ref/Cite completion helper functions " ============================================================================== " Tex_SetupCWindow: set maps and local settings for cwindow {{{ --- 259,263 ---- " ============================================================================== ! " Helper functions for dealing with the 'quickfix' and 'preview' windows. " ============================================================================== " Tex_SetupCWindow: set maps and local settings for cwindow {{{ *************** *** 427,431 **** exe s:pos endfunction " }}} - " Tex_GoToLocation: Go to chosen location {{{ " Description: Get number of current line and go to this number --- 428,431 ---- *************** *** 446,481 **** " ============================================================================== ! " Bibliography specific functions " ============================================================================== ! " Tex_GrepForBibItems: grep main filename for bib items {{{ " Description: ! function! Tex_GrepForBibItems(prefix) ! let mainfname = Tex_GetMainFileName(':p') ! ! let toquit = 0 ! if bufnr('%') != bufnr(mainfname) ! exec 'split '.mainfname ! let toquit = 1 ! endif ! let _path = &path let _suffixesadd = &suffixesadd ! let &path = '.,'.g:Tex_BIBINPUTS ! let &suffixesadd = '.tex' let pos = line('.').'| normal! '.virtcol('.').'|' ! let foundCiteFile = Tex_ScanFileForCite(a:prefix) exec pos let &path = _path let &suffixesadd = _suffixesadd - if foundCiteFile - if toquit - q - endif - return - endif endfunction " }}} " Tex_ScanFileForCite: search for \bibitem's in .bib or .bbl or tex files {{{ --- 446,482 ---- " ============================================================================== ! " Functions for finding \\label's or \\bibitem's in the main file. " ============================================================================== ! " Tex_GrepHelper: grep main filename for \\bibitem's or \\label's {{{ " Description: ! function! Tex_GrepHelper(prefix, what) let _path = &path let _suffixesadd = &suffixesadd + let _hidden = &hidden ! let mainfname = Tex_GetMainFileName(':p') ! " If we are already editing the file, then use :split without any ! " arguments so it works even if the file is modified. ! " FIXME: If mainfname is being presently edited in another window and ! " is 'modified', then the second split statement will not work. ! " We will need to travel to that window and back. ! if mainfname == expand('%:p') ! split ! else ! exec 'split '.mainfname ! endif let pos = line('.').'| normal! '.virtcol('.').'|' ! if a:what =~ 'bib' ! call Tex_ScanFileForCite(a:prefix) ! else ! call Tex_ScanFileForLabels(a:prefix) ! endif exec pos + q let &path = _path let &suffixesadd = _suffixesadd endfunction " }}} " Tex_ScanFileForCite: search for \bibitem's in .bib or .bbl or tex files {{{ *************** *** 497,501 **** " as soon as the first \bibliography or \begin{thebibliography} is found. function! Tex_ScanFileForCite(prefix) ! call Tex_Debug('searching for bibkeys in '.bufname('%').' (buffer #'.bufnr('%').')', 'view') let presBufNum = bufnr('%') --- 498,502 ---- " as soon as the first \bibliography or \begin{thebibliography} is found. function! Tex_ScanFileForCite(prefix) ! call Tex_Debug('+Tex_ScanFileForCite: searching for bibkeys in '.bufname('%').' (buffer #'.bufnr('%').')', 'view') let presBufNum = bufnr('%') *************** *** 505,509 **** " bibliography. if search('\\bibliography{', 'w') ! call Tex_Debug('found bibliography command in '.bufname('%'), 'view') " convey that we have found a bibliography command. we do not need to " proceed any further. --- 506,510 ---- " bibliography. if search('\\bibliography{', 'w') ! call Tex_Debug('Tex_ScanFileForCite: found bibliography command in '.bufname('%'), 'view') " convey that we have found a bibliography command. we do not need to " proceed any further. *************** *** 516,519 **** --- 517,522 ---- call Tex_Debug('trying to search through ['.bibnames.']', 'view') + let &path = '.,'.g:Tex_BIBINPUTS + let i = 1 while Tex_Strntok(bibnames, ',', i) != '' *************** *** 533,537 **** lcd %:p:h " use the appropriate syntax for the .bib file. ! exec "silent! grepadd ".Tex_EscapeForGrep('@.*{'.a:prefix)." %" else let thisbufnum = bufnr('%') --- 536,540 ---- lcd %:p:h " use the appropriate syntax for the .bib file. ! exec "silent! grepadd! ".Tex_EscapeForGrep('@.*{'.a:prefix)." %" else let thisbufnum = bufnr('%') *************** *** 541,545 **** call Tex_Debug('finding .bbl file ['.bufname('.').']', 'view') lcd %:p:h ! exec "silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" endif endif --- 544,548 ---- call Tex_Debug('finding .bbl file ['.bufname('.').']', 'view') lcd %:p:h ! exec "silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" endif endif *************** *** 550,553 **** --- 553,558 ---- endwhile + let &path = _path + if foundCiteFile return 1 *************** *** 565,570 **** split lcd %:p:h ! call Tex_Debug("silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view') ! exec "silent! grepadd ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" q --- 570,575 ---- split lcd %:p:h ! call Tex_Debug("silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %", 'view') ! exec "silent! grepadd! ".Tex_EscapeForGrep('\\bibitem{'.a:prefix)." %" q *************** *** 575,578 **** --- 580,586 ---- " in this file, search for these environments in all the files which this " file includes. + let &path = '.,'.g:Tex_TEXINPUTS + let &suffixesadd = '.tex' + exec 0 let wrap = 'w' *************** *** 598,606 **** endwhile return 0 endfunction " }}} " ============================================================================== ! " Custom Completion help functions/settings " ============================================================================== " Tex_completion_{var}: similar variables can be set in package files {{{ --- 606,653 ---- endwhile + return 0 endfunction " }}} + " Tex_ScanFileForLabels: greps present file and included files for \\label's {{{ + " Description: + " Grep the presently edited file for \\label's. If the present file \include's + " or \input's other files, then recursively scan those as well, i.e we support + " arbitrary levels of \input'ed-ness. + function! Tex_ScanFileForLabels(prefix) + call Tex_Debug("+Tex_ScanFileForLabels: grepping in file [".bufname('%')."]", "view") + + lcd %:p:h + exec "silent! grepadd! ".Tex_EscapeForGrep('\\label{'.a:prefix)." %" + + " Then recursively grep for all \include'd or \input'ed files. + let &suffixesadd = '.tex' + let &path = '.,'.g:Tex_TEXINPUTS + exec 0 + let wrap = 'w' + while search('^\s*\\\(input\|include\)', wrap) + let wrap = 'W' + + let filename = matchstr(getline('.'), '\\\(input\|include\){\zs.\{-}\ze}') + + let thisbufnum = bufnr('%') + + split + exec 'silent! find '.filename + + if bufnr('%') != thisbufnum + call Tex_Debug('Tex_ScanFileForLabels: scanning recursively in ['.bufname('%').']', 'view') + let foundCiteFile = Tex_ScanFileForLabels(a:prefix) + endif + + q + + if foundCiteFile + return 1 + endif + endwhile + endfunction " }}} " ============================================================================== ! " Functions for custom command completion " ============================================================================== " Tex_completion_{var}: similar variables can be set in package files {{{ |
From: <sri...@us...> - 2004-05-14 17:37:38
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19735 Modified Files: compiler.vim Log Message: Bug: Sometimes, even if there are errors in compiling the .tex file, Tex_RunLaTeX proceeds to convert to ps, etc. Why: The pattern used to check whether there is an error lin the :clist is very restrictive. If there are errors which do not have an associated line number, then the pattern doesn't match and we fail to detect that there is an error. Fix: Just use very simple patterns. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** compiler.vim 4 Mar 2004 06:15:25 -0000 1.61 --- compiler.vim 14 May 2004 17:37:29 -0000 1.62 *************** *** 223,228 **** endif " If there are any errors, then break from the rest of the steps ! if Tex_GetErrorList() =~ '\v:\d+ (error|warning):' call Tex_Debug('There were errors in compiling, breaking chain...', 'comp') break --- 223,231 ---- endif + let errlist = Tex_GetErrorList() + call Tex_Debug("Tex_RunLaTeX: errlist = [".errlist."]", "comp") + " If there are any errors, then break from the rest of the steps ! if errlist =~ '\v(error|warning)' call Tex_Debug('There were errors in compiling, breaking chain...', 'comp') break *************** *** 502,508 **** " away after compiling again or after bibtex is run etc. let errlist = Tex_GetErrorList() ! call Tex_Debug("errors = [".errlist."]", "comp") ! if errlist =~ '\d\+\s\f\+:\d\+\serror' let g:Tex_IgnoredWarnings = origpats exec 'TCLevel '.origlevel --- 505,511 ---- " away after compiling again or after bibtex is run etc. let errlist = Tex_GetErrorList() ! call Tex_Debug("Tex_CompileMultipleTimes: errors = [".errlist."]", "comp") ! if errlist =~ 'error' let g:Tex_IgnoredWarnings = origpats exec 'TCLevel '.origlevel |
From: <sri...@us...> - 2004-05-14 17:33:30
|
Update of /cvsroot/vim-latex/vimfiles/compiler In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18702 Modified Files: tex.vim Log Message: Bug: If an error is of the form >> ! Missing $ inserted. >> <inserted text> >> $ >> l.9 >> >> I've inserted a begin-math/end-math symbol since I think >> you left one out. Proceed, with fingers crossed. (there's a single <space> after l.9), then the line number is not recognized. Why: The 'efm' setting contains only '%+Cl.%l\ %m', which means that the line number is recognized only when the "l.<number><space>" is followed by a message. Fix: Append '%+Cl.%l\ ' to the 'efm'. Index: tex.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/compiler/tex.vim,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** tex.vim 24 Jul 2003 02:52:35 -0000 1.6 --- tex.vim 14 May 2004 17:33:20 -0000 1.7 *************** *** 209,212 **** --- 209,213 ---- exec 'setlocal efm+=%'.pm.'Cl.%l\ %m' + exec 'setlocal efm+=%'.pm.'Cl.%l\ ' exec 'setlocal efm+=%'.pm.'C\ \ %m' exec 'setlocal efm+=%'.pm.'C%.%#-%.%#' |
From: <sri...@us...> - 2004-05-09 22:43:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26264 Modified Files: texviewer.vim Log Message: Bug: The <F9> mapping only works on the first .tex file which triggers latex-suite. (Julien) Why: When we were moving texviewer.vim from ../tex/texviewer.vim to here, we didn't bother to catch the LatexSuiteFileTypeEvent which is the mechanism to ensure the maps get set for every .tex file opened. Fix: Catch the LatexSuiteFileTypeEvent event (SA) Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** texviewer.vim 3 Mar 2004 00:19:29 -0000 1.2 --- texviewer.vim 9 May 2004 22:43:00 -0000 1.3 *************** *** 9,18 **** " ============================================================================ - if exists("g:Tex_Completion") - call Tex_SetTexViewerMaps() - finish - endif - let g:Tex_Completion = 1 - " Tex_SetTexViewerMaps: sets maps for this ftplugin {{{ function! Tex_SetTexViewerMaps() --- 9,12 ---- *************** *** 27,37 **** endfunction ! " call this function the first time ! call Tex_SetTexViewerMaps() ! " }}} command -nargs=1 TLook call Tex_Complete(<q-args>, 'tex') command -nargs=1 TLookAll call Tex_Complete(<q-args>, 'all') command -nargs=1 TLookBib call Tex_Complete(<q-args>, 'bib') " ============================================================================== " Main completion function --- 21,36 ---- endfunction ! augroup LatexSuite ! au LatexSuite User LatexSuiteFileType ! \ call Tex_Debug('texviewer.vim: Catching LatexSuiteFileType event', 'view') | ! \ call Tex_SetTexViewerMaps() ! augroup END ! command -nargs=1 TLook call Tex_Complete(<q-args>, 'tex') command -nargs=1 TLookAll call Tex_Complete(<q-args>, 'all') command -nargs=1 TLookBib call Tex_Complete(<q-args>, 'bib') + " }}} + " ============================================================================== " Main completion function *************** *** 166,171 **** endif ! endfunction " }}} ! " Tex_CompleteWord: inserts a word at the chosen location {{{ " Description: This function is meant to be called when the user press --- 165,170 ---- endif ! endfunction ! " }}} " Tex_CompleteWord: inserts a word at the chosen location {{{ " Description: This function is meant to be called when the user press |
From: <sri...@us...> - 2004-05-09 22:12:00
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20134 Modified Files: latex-suite.xml latex-suite.txt Log Message: New: Description of the <M-i> mapping to insert \item commands. Index: latex-suite.xml =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.xml,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** latex-suite.xml 6 Dec 2003 02:45:57 -0000 1.31 --- latex-suite.xml 9 May 2004 22:11:48 -0000 1.32 *************** *** 838,843 **** <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> --- 838,886 ---- <para> This mapping inserts an <literal>\item</literal> command at the ! current cursor location depending on which environment the cursor is ! enclosed in. The style of the <literal>\item</literal> command is ! dependent on the enclosing environment. By default, ! <literal><Alt-I></literal> has styles defined forthe following ! environments: ! </para> ! <informaltable frame="all"> ! <tgroup cols="2"> ! <thead> ! <row> ! <entry>Environment</entry> ! <entry>Style</entry> ! </row> ! </thead> ! <tbody> ! <row><entry>itemize</entry><entry>\item </entry></row> ! <row><entry>enumerate</entry><entry>\item </entry></row> ! <row><entry>theindex</entry><entry>\item </entry></row> ! <row><entry>thebibliography</entry><entry>\item[<+biblabel+>]{<+bibkey+>} <++></entry></row> ! <row><entry>description</entry><entry>\item[<+label+>] <++></entry></row> ! </tbody> ! </tgroup> ! </informaltable> ! <para> ! <literal><Alt-I></literal> is intelligent enough to ! account for nested environments. For example, ! <programlisting>\begin{itemize} ! \item first item ! \item second item ! \begin{description} ! \item[label1] first desc ! \item[label2] second ! % <Alt-I> will insert "\item[<+label+>] <++>" if ! % used here ! \end{description} ! \item third item ! % <Alt-I> will insert "\item " when if used here. ! \end{itemize} ! % <Alt-I> will insert nothing ("") if used here</programlisting> ! </para> ! <para> ! The style used by <literal><Alt-I></literal> can be customized ! using the <link ! linkend="Tex_ItemStyle_environment"><literal>g:Tex_ItemStyle_environment</literal></link> ! variable. </para> </section> *************** *** 1049,1069 **** " Description: function! AskVimFunc() ! let name = input('Name of the function : ') ! if name == '' ! let name = "<+Function Name+>" ! end ! let islocal = input('Is this function scriptlocal ? [y]/n : ', 'y') ! if islocal == 'y' ! let sidstr = '<SID>' ! else ! let sidstr = '' ! endif ! return IMAP_PutTextWithMovement( ! \ "\" ".name.": <+short description+> \<cr>" . ! \ "Description: <+long description+>\<cr>" . ! \ "\<C-u>function! ".name."(<+arguments+>)&ph;\<cr>" . ! \ "<+function body+>\<cr>" . ! \ "endfunction \" " ! \ ) endfunction</programlisting> <para> --- 1092,1112 ---- " Description: function! AskVimFunc() ! let name = input('Name of the function : ') ! if name == '' ! let name = "<+Function Name+>" ! end ! let islocal = input('Is this function scriptlocal ? [y]/n : ', 'y') ! if islocal == 'y' ! let sidstr = '<SID>' ! else ! let sidstr = '' ! endif ! return IMAP_PutTextWithMovement( ! \ "\" ".name.": <+short description+> \<cr>" . ! \ "Description: <+long description+>\<cr>" . ! \ "\<C-u>function! ".name."(<+arguments+>)&ph;\<cr>" . ! \ "<+function body+>\<cr>" . ! \ "endfunction \" " ! \ ) endfunction</programlisting> <para> *************** *** 3378,3382 **** <literal>eqnarray*</literal> expand to <programlisting>\begin{eqnarray*} ! &ph; &=& &ph; \end{eqnarray*}&ph;</programlisting> </para> --- 3421,3425 ---- <literal>eqnarray*</literal> expand to <programlisting>\begin{eqnarray*} ! &ph; &=& &ph; \end{eqnarray*}&ph;</programlisting> </para> *************** *** 3401,3404 **** --- 3444,3483 ---- </para> </section> + <section id="Tex_ItemStyle_environment"> + <title>Tex_ItemStyle_environment</title> + <para> + This setting affects the style which &ls; uses to insert an + <literal>\item</literal> when <literal><Alt-I></literal> is + pressed as described <link linkend="Alt-I">here</link>. By default + &ls; defines styles for the following environments: + </para> + <informaltable frame="all"> + <tgroup cols="2"> + <thead> + <row> + <entry>Environment</entry> + <entry>Style</entry> + </row> + </thead> + <tbody> + <row><entry>itemize</entry><entry>\item </entry></row> + <row><entry>enumerate</entry><entry>\item </entry></row> + <row><entry>theindex</entry><entry>\item </entry></row> + <row><entry>thebibliography</entry><entry>\item[<+biblabel+>]{<+bibkey+>} <++></entry></row> + <row><entry>description</entry><entry>\item[<+label+>] <++></entry></row> + </tbody> + </tgroup> + </informaltable> + <para> + Each style is defined by a variable of the form + <literal>g:Tex_ItemStyle_{envname}</literal> where + <literal>envname</literal> is the name of the environment for which + the style is defined. For example, by default + <programlisting>g:Tex_ItemStyle_description = '\item[<+label+>] <++>'</programlisting> + Redefining the style for a particular environment or defining a style + for an entirely new environment is simply a matter of setting the + value of a variable of the corresponding name. + </para> + </section> </section> <section id="customizing-smart-keys"> Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** latex-suite.txt 14 Dec 2003 07:25:04 -0000 1.52 --- latex-suite.txt 9 May 2004 22:11:49 -0000 1.53 *************** *** 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_dI|] 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_dJ|] for a list of people who have helped. [...1120 lines suppressed...] --- 3089,3093 ---- ================================================================================ ! Credits *ls_11* *ls_a_dJ* *latex-suite-credits* *************** *** 3075,3079 **** out who has done what. ! *latex-suite-maintainer* *ls_a_ep* The current maintainer(s) of Latex-Suite is(are) --- 3126,3130 ---- out who has done what. ! *latex-suite-maintainer* *ls_a_eq* The current maintainer(s) of Latex-Suite is(are) |
From: <sri...@us...> - 2004-05-04 20:50:20
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18689 Modified Files: imaps.vim Log Message: Bug: when 'ignorecase' is set, then typing 'etB' triggers an error. Why: With 'ignorecase' set, 'etB' matches 'ETB', therefore, LookupCharacter assumes that a map exists for 'etB' and tries to find the value of s:Map_Tex_etB which doesn't exist. Fix: Force matching case with the \C pattern. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** imaps.vim 4 Dec 2003 00:06:06 -0000 1.37 --- imaps.vim 4 May 2004 20:50:11 -0000 1.38 *************** *** 224,231 **** " escaped when building up s:LHS_{&ft}_{charHash} . if exists("s:LHS_" . &ft . "_" . charHash) ! \ && text =~ '\V\(' . s:LHS_{&ft}_{charHash} . '\)\$' let ft = &ft elseif exists("s:LHS__" . charHash) ! \ && text =~ '\V\(' . s:LHS__{charHash} . '\)\$' let ft = "" else --- 224,231 ---- " escaped when building up s:LHS_{&ft}_{charHash} . if exists("s:LHS_" . &ft . "_" . charHash) ! \ && text =~ "\\C\\V\\(" . s:LHS_{&ft}_{charHash} . "\\)\\$" let ft = &ft elseif exists("s:LHS__" . charHash) ! \ && text =~ "\\C\\V\\(" . s:LHS__{charHash} . "\\)\\$" let ft = "" else *************** *** 266,270 **** " ensures that the longest LHS is used for the mapping. if !exists('lhs') || !exists('rhs') ! let lhs = matchstr(text, '\V\(' . s:LHS_{ft}_{charHash} . '\)\$') let hash = s:Hash(lhs) let rhs = s:Map_{ft}_{hash} --- 266,270 ---- " ensures that the longest LHS is used for the mapping. if !exists('lhs') || !exists('rhs') ! let lhs = matchstr(text, "\\C\\V\\(" . s:LHS_{ft}_{charHash} . "\\)\\$") let hash = s:Hash(lhs) let rhs = s:Map_{ft}_{hash} |
From: <sri...@us...> - 2004-03-15 19:49:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16873 Modified Files: envmacros.vim Log Message: New: A more precise behavior of the Tex_InsertItem function to account for the fact that the previous \\begin might not be the environment in which the cursor is enclosed. (Alan Schmitt) Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** envmacros.vim 14 Mar 2004 06:25:44 -0000 1.46 --- envmacros.vim 15 Mar 2004 19:40:48 -0000 1.47 *************** *** 871,874 **** --- 871,920 ---- " Contributions / Tex_InsertItem() from Johannes Tanzler " ============================================================================== + " Tex_GetCurrentEnv: gets the current environment in which the cursor lies {{{ + " Description: handles cases such as: + " + " \begin{itemize} + " \item first item + " \item second item + " \begin{description} + " \item first desc + " \item second + " % Tex_GetCurrentEnv will return "description" when called from here + " \end{description} + " \item third item + " % Tex_GetCurrentEnv will return "itemize" when called from here + " \end{itemize} + " % Tex_GetCurrentEnv will return "" when called from here + " + " Author: Alan Schmitt + function! Tex_GetCurrentEnv() + let pos = line('.').' | normal! '.virtcol('.').'|' + let i = 0 + while 1 + let env_line = search('^[^%]*\\\%(begin\|end\){', 'bW') + if env_line == 0 + " we reached the beginning of the file, so we return the empty string + exe pos + return '' + endif + if match(getline(env_line), '^[^%]*\\begin{') == -1 + " we found a \\end, so we keep searching + let i = i + 1 + continue + else + " we found a \\begin which has not been \\end'ed. we are done. + if i == 0 + let env = matchstr(getline(env_line), '\\begin{\zs.\{-}\ze}') + exe pos + return env + else + " this \\begin closes a \\end, continue searching. + let i = i - 1 + continue + endif + endif + endwhile + endfunction + " }}} " Tex_InsertItem: insert \item into a list {{{ " Description: Find last \begin line, extract env name, return to the start *************** *** 885,892 **** function! Tex_InsertItem() " Get current enclosing environment ! let pos = line('.').' | normal! '.virtcol('.').'|' ! let env_line = search('^[^%]*\\begin{', 'bW') ! let env = matchstr(getline(env_line), '\\begin{\zs.\{-}\ze}') ! exe pos if exists('g:Tex_ItemStyle_'.env) --- 931,935 ---- function! Tex_InsertItem() " Get current enclosing environment ! let env = Tex_GetCurrentEnv() if exists('g:Tex_ItemStyle_'.env) |
From: <sri...@us...> - 2004-03-14 19:48:29
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2308 Modified Files: remoteOpen.vim Log Message: Bug: RemoteOpen does not work with file names with spaces. Why: The following vim command :drop File Name with spaces opens up multiple files. Fix: escape() the file name before issuing the drop command. NOTE: There is a vim bug where exec "drop ".escape(filename, '\ ') hangs GVIM. Index: remoteOpen.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/remoteOpen.vim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** remoteOpen.vim 29 Feb 2004 07:26:22 -0000 1.3 --- remoteOpen.vim 14 Mar 2004 19:39:29 -0000 1.4 *************** *** 50,53 **** --- 50,54 ---- let filename = matchstr(a:arglist, '^\s*\zs.*\ze') endif + let filename = escape(filename, ' ') call Tex_Debug("linenum = ".linenum.', filename = '.filename, "ropen") |
From: <sri...@us...> - 2004-03-14 06:34:38
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23558 Modified Files: envmacros.vim Log Message: Bug: <M-i> is mapped to <Plug>Tex_InsertItemOnThisLine even when there is some other key sequence which is mapped to <Plug>Tex_InsertItemOnThisLine. Why: hasmapto() uses "nvo" as the default. Therefore, checking for the existence of an insert mode mapping without supplying the mode argument is faulty. Fix: Supply "i" as the mode argument. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** envmacros.vim 29 Feb 2004 17:19:11 -0000 1.45 --- envmacros.vim 14 Mar 2004 06:25:44 -0000 1.46 *************** *** 904,911 **** 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 --- 904,911 ---- function! Tex_SetItemMaps() ! if !hasmapto("<Plug>Tex_InsertItem", "i") imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine endif ! if !hasmapto("<Plug>Tex_InsertItemOnNextLine", "i") imap <buffer> <C-CR> <Plug>Tex_InsertItemOnNextLine endif |
From: <sri...@us...> - 2004-03-11 06:59:35
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9722 Added Files: brackets.vim Log Message: placeholder brackets.vim file |
From: <sri...@us...> - 2004-03-11 06:56:47
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9265 Added Files: texviewer.vim Log Message: placeholder texviewer.vim file |
From: <sri...@us...> - 2004-03-04 06:28:32
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28297 Modified Files: compiler.vim Log Message: Fix: removing outdated comments. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** compiler.vim 3 Mar 2004 00:32:43 -0000 1.60 --- compiler.vim 4 Mar 2004 06:15:25 -0000 1.61 *************** *** 243,249 **** " Again, if the current file is a \input in a master file, see text above " Tex_RunLaTeX() to see how to set this information. - " If Tex_ViewLaTeX was called with argument "part" show file which name is stored - " in g:tfile variable. If g:tfile doesnt exist, no problem. Function is called - " as silent. function! Tex_ViewLaTeX() if &ft != 'tex' --- 243,246 ---- |
From: <sri...@us...> - 2004-03-03 00:44:52
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13562 Modified Files: compiler.vim Log Message: Bug: Viewing .dvi files with spaces in names doesn't work. (Panagiotis Louridas) Why: We don't enclose the file name in double-quotes. Fix: Enclose file-name in double-quotes. As of now, only bother with spaces in win32. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.59 retrieving revision 1.60 diff -C2 -d -r1.59 -r1.60 *** compiler.vim 1 Feb 2004 21:54:13 -0000 1.59 --- compiler.vim 3 Mar 2004 00:32:43 -0000 1.60 *************** *** 271,275 **** " 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) --- 271,275 ---- " 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) |
From: <sri...@us...> - 2004-03-03 00:31:40
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11385 Modified Files: texviewer.vim Log Message: Bug: <F9> completion for \cite does not work Why: Tex_GrepForBibItems uses the mainfile name without extension. Fix: get the whole file name including extension. Index: texviewer.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texviewer.vim,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** texviewer.vim 26 Jan 2004 12:56:49 -0000 1.1 --- texviewer.vim 3 Mar 2004 00:19:29 -0000 1.2 *************** *** 452,456 **** " Description: function! Tex_GrepForBibItems(prefix) ! let mainfname = Tex_GetMainFileName(':p:r') let toquit = 0 --- 452,456 ---- " Description: function! Tex_GrepForBibItems(prefix) ! let mainfname = Tex_GetMainFileName(':p') let toquit = 0 |
From: <sri...@us...> - 2004-02-29 17:29:34
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10048 Modified Files: envmacros.vim Log Message: New: Some additions to the thebibliography environment and item descriptions and the description item. (Dave Murray-Rust) Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** envmacros.vim 23 Dec 2003 21:30:54 -0000 1.44 --- envmacros.vim 29 Feb 2004 17:19:11 -0000 1.45 *************** *** 502,506 **** return IMAP_PutTextWithMovement('\begin{thebibliography}'.foo."\<cr>".bar." \<cr>\\end{thebibliography}<++>\<Up>") else ! return IMAP_PutTextWithMovement("\\begin{thebibliography}\<CR><++>\<CR>\\end{thebibliography}<++>") endif endfunction --- 502,510 ---- return IMAP_PutTextWithMovement('\begin{thebibliography}'.foo."\<cr>".bar." \<cr>\\end{thebibliography}<++>\<Up>") else ! return IMAP_PutTextWithMovement( ! \ "\\begin{thebibliography}\<CR>". ! \ "\\item[<+biblabel+>]{<+bibkey+>} <++>\<CR>". ! \ "<++>\<CR>". ! \ "\\end{thebibliography}<++>") endif endfunction *************** *** 876,881 **** 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() --- 880,885 ---- 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[<+label+>] <++>' function! Tex_InsertItem() |
From: <sri...@us...> - 2004-02-29 07:36:26
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4223 Modified Files: remoteOpen.vim Log Message: Bug: Opening a file via the :RemoteOpen command does not work (Xin Yin) Why: Vim eats up all but the last remote_send call when multiple invokations to this function are made (Vim bug) Fix: Collapse the entire set of keys into a single string and make a single remote_send call. Index: remoteOpen.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/remoteOpen.vim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** remoteOpen.vim 14 Jun 2003 04:43:07 -0000 1.2 --- remoteOpen.vim 29 Feb 2004 07:26:22 -0000 1.3 *************** *** 50,57 **** --- 50,59 ---- let filename = matchstr(a:arglist, '^\s*\zs.*\ze') endif + call Tex_Debug("linenum = ".linenum.', filename = '.filename, "ropen") " If there is no clientserver functionality, then just open in the present " session and return if !has('clientserver') + call Tex_Debug("-clientserver, opening locally and returning", "ropen") exec "e ".filename exec linenum *************** *** 64,67 **** --- 66,70 ---- " If there are no servers, open file locally. if servers == '' + call Tex_Debug("no open servers, opening locally", "ropen") exec "e ".filename exec linenum *************** *** 90,95 **** " set a variable g:Remote_Server to indicate that this server " session has at least one file opened via RemoteOpen ! call remote_send(server, "\<C-\>\<C-n>:drop ".filename."\<CR>:".linenum."\<CR>:normal! zv\<CR>") ! call remote_send(server, ":let g:Remote_Server = 1\<CR>") call remote_foreground(server) " quit this vim session --- 93,102 ---- " set a variable g:Remote_Server to indicate that this server " session has at least one file opened via RemoteOpen ! call remote_send(server, ! \ "\<C-\>\<C-n>". ! \ ":let g:Remote_Server = 1\<CR>". ! \ ":drop ".filename."\<CR>". ! \ ":".linenum."\<CR>zv" ! \ ) call remote_foreground(server) " quit this vim session *************** *** 102,105 **** --- 109,113 ---- let server = s:Strntok(servers, "\n", i) endwhile + call Tex_Debug("no server has file open, but firstServer = ".firstServer, "ropen") " If none of the servers have the file open, then open this file in the *************** *** 107,112 **** " multiple vims, then at least they will all be opened by the same gvim " server. ! call remote_send(firstServer, "\<C-\>\<C-n>:drop ".filename."\<CR>:".linenum."\<CR>:normal! zv\<CR>") ! call remote_send(firstServer, ":let g:Remote_Server = 1\<CR>") call remote_foreground(firstServer) " quit this vim session --- 115,124 ---- " multiple vims, then at least they will all be opened by the same gvim " server. ! call remote_send(firstServer, ! \ "\<C-\>\<C-n>". ! \ ":let g:Remote_Server = 1\<CR>". ! \ ":drop ".filename."\<CR>". ! \ ":".linenum."\<CR>zv" ! \ ) call remote_foreground(firstServer) " quit this vim session |
From: Srinath A. <sr...@fa...> - 2004-02-29 04:44:17
|
Looks like there is a problem with the vim-latex-cvs list. Testing email from outside addresses. Srinath |
From: <sri...@us...> - 2003-12-23 21:30:58
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv25902 Modified Files: envmacros.vim Log Message: Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** envmacros.vim 23 Dec 2003 21:26:50 -0000 1.43 --- envmacros.vim 23 Dec 2003 21:30:54 -0000 1.44 *************** *** 72,76 **** if g:Tex_EnvironmentMaps && !exists('s:doneOnce') - " call IMAP (a:lhs, '\begin{'.a:name."}\<CR>".extra."<++>\<CR>\\end{".a:name."}<++>", 'tex') call IMAP(a:lhs, "\<C-r>=Tex_PutEnvironment('".a:name."')\<CR>", 'tex') exec 'vnoremap <silent> '.vlhs.' '.vrhs --- 72,75 ---- |
From: <sri...@us...> - 2003-12-23 21:26:53
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv24908 Modified Files: envmacros.vim Log Message: Bug: EEA inserted something different than "eqnarray<F5>". Why: Tex_EnvMacros() used its own logic for forming the environment string. Fix: make Tex_EnvMacros() call Tex_PutEnvironment() instead. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** envmacros.vim 23 Dec 2003 21:08:42 -0000 1.42 --- envmacros.vim 23 Dec 2003 21:26:50 -0000 1.43 *************** *** 72,76 **** if g:Tex_EnvironmentMaps && !exists('s:doneOnce') ! call IMAP (a:lhs, '\begin{'.a:name."}\<CR>".extra."<++>\<CR>\\end{".a:name."}<++>", 'tex') exec 'vnoremap <silent> '.vlhs.' '.vrhs endif --- 72,77 ---- if g:Tex_EnvironmentMaps && !exists('s:doneOnce') ! " call IMAP (a:lhs, '\begin{'.a:name."}\<CR>".extra."<++>\<CR>\\end{".a:name."}<++>", 'tex') ! call IMAP(a:lhs, "\<C-r>=Tex_PutEnvironment('".a:name."')\<CR>", 'tex') exec 'vnoremap <silent> '.vlhs.' '.vrhs endif *************** *** 417,421 **** let label = input('Label? ') if label != '' ! let arrlabel = '\label{'.label."}\<cr> " else let arrlabel = '' --- 418,422 ---- let label = input('Label? ') if label != '' ! let arrlabel = '\label{'.label."}\<cr>" else let arrlabel = '' *************** *** 424,436 **** let arrlabel = '' endif - return IMAP_PutTextWithMovement('\begin{'.a:env."}\<cr>".arrlabel."<++>\<cr>\\end{".a:env."}<++>") else if a:env !~ '\*' ! let arrlabel = '\label{<++>}<++>' else ! let arrlabel = '<++>' endif - return IMAP_PutTextWithMovement('\begin{'.a:env."}\<cr>".arrlabel."\<cr>".'\end{'.a:env.'}<++>') endif endfunction " }}} --- 425,436 ---- let arrlabel = '' endif else if a:env !~ '\*' ! let arrlabel = "\\label{<++>}\<cr>" else ! let arrlabel = "" endif endif + return IMAP_PutTextWithMovement('\begin{'.a:env."}\<cr><++>\<cr>".arrlabel."\\end{".a:env."}<++>") endfunction " }}} |
From: <sri...@us...> - 2003-12-23 21:08:45
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv22175 Modified Files: envmacros.vim Log Message: Bug: When some text is visually selected, then <F7> surrounds the selection in an environment created from the last word of the selection instead of prompting for an environment. Why: Tex_DoCommand ignores the value of s:isvisual. Fix: Make Tex_DoCommand honor s:isvisual. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** envmacros.vim 14 Dec 2003 07:17:58 -0000 1.41 --- envmacros.vim 23 Dec 2003 21:08:42 -0000 1.42 *************** *** 939,943 **** function! Tex_DoCommand(...) if a:0 < 1 ! if getline('.') != '' let lastword = expand('<cword>') if lastword != '' --- 939,952 ---- function! Tex_DoCommand(...) if a:0 < 1 ! " If the current line is empty or if a visual selection has been made, ! " prompt for a new environment. ! if getline('.') == '' || (exists('s:isvisual') && s:isvisual == 'yes') ! let com = PromptForCommand('Choose a command to insert: ') ! if com != '' ! return Tex_PutCommand(com) ! else ! return '' ! endif ! else let lastword = expand('<cword>') if lastword != '' *************** *** 945,954 **** endif endif - let com = PromptForCommand('Choose a command to insert: ') - if com != '' - return Tex_PutCommand(com) - else - return '' - endif else return Tex_PutCommand(a:1) --- 954,957 ---- *************** *** 1057,1061 **** function! s:ChangeCommand(newcom) ! exe 'normal ct{'.a:newcom."\<Esc>" endfunction --- 1060,1064 ---- function! s:ChangeCommand(newcom) ! exe 'normal! ct{'.a:newcom."\<Esc>" endfunction |