vim-latex-cvs Mailing List for Vim-Latex (Page 34)
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...> - 2002-12-06 09:37:56
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv20930 Modified Files: main.vim Log Message: . enable the smart key mapping functions/maps only if the user wants to. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** main.vim 6 Dec 2002 08:46:02 -0000 1.13 --- main.vim 6 Dec 2002 09:37:51 -0000 1.14 *************** *** 4,8 **** " Email: sr...@fa... " URL: ! " Last Change: Fri Dec 06 12:00 AM 2002 PST " " Help: --- 4,8 ---- " Email: sr...@fa... " URL: ! " Last Change: Fri Dec 06 01:00 AM 2002 PST " " Help: *************** *** 222,321 **** " ============================================================================== " TexQuotes: inserts `` or '' instead of " {{{ ! " Taken from texmacro.vim by Benji Fisher <be...@e-...> ! " TODO: Deal with nested quotes. ! function! s:TexQuotes() ! let l = line(".") ! let c = col(".") ! let restore_cursor = l . "G" . virtcol(".") . "|" ! normal! H ! let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor ! execute restore_cursor ! if synIDattr(synID(l, c, 1), "name") =~ "^texMath" ! \ || (c > 1 && getline(l)[c-2] == '\') ! return '"' ! endif ! let open = exists("g:Tex_SmartQuoteOpen") ? g:Tex_SmartQuoteOpen : "``" ! let close = exists("g:Tex_SmartQuoteClose") ? g:Tex_SmartQuoteClose : "''" ! let boundary = '\|' ! if exists("s:TeX_strictquote") ! if( s:TeX_strictquote == "open" || s:TeX_strictquote == "both" ) ! let boundary = '\<' . boundary ! endif ! if( s:TeX_strictquote == "close" || s:TeX_strictquote == "both" ) ! let boundary = boundary . '\>' endif ! endif ! let q = open ! while 1 " Look for preceding quote (open or close), ignoring ! " math mode and '\"' . ! " execute 'normal ?^$\|"\|' . open . boundary . close . "\r" ! call search(open . boundary . close . '\|^$\|"', "bw") ! if synIDattr(synID(line("."), col("."), 1), "name") !~ "^texMath" ! \ && (col(".") == 1 || getline(".")[col(".")-2] != '\') ! break endif ! endwhile ! " Now, test whether we actually found a _preceding_ quote; if so, is it ! " and open quote? ! if ( line(".") < l || line(".") == l && col(".") < c ) ! if strlen(getline(".")) ! if ( getline(".")[col(".")-1] == open[0] ) ! let q = close endif endif ! endif ! " Return to line l, column c: ! execute restore_cursor ! return q ! endfunction " }}} " SmartBS: smart backspacing {{{ ! " SmartBS lets you treat diacritic characters (those \'{a} thingies) as a ! " single character. This is useful for example in the following situation: ! " ! " \v{s}\v{t}astn\'{y} ('happy' in Slovak language :-) ) ! " If you will delete this normally (without using smartBS() function), you ! " must press <BS> about 19x. With function smartBS() you must press <BS> only ! " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are ! " deleted with one <BS>. ! " ! let s:smartBS_pat = '\(' . ! \ "\\\\[\"^'=v]{\\S}" . '\|' . ! \ "\\\\[\"^'=]\\S" . '\|' . ! \ '\\v \S' . '\|' . ! \ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' . ! \ '\\v \\[iI]' . '\|' . ! \ '\\q \S' . '\|' . ! \ '\\-' . ! \ '\)' . "$" ! fun! s:SmartBS_pat() ! return s:smartBS_pat ! endfun ! " This function comes from Benji Fisher <be...@e-...> ! " http://vim.sourceforge.net/scripts/download.php?src_id=409 ! " (modified/patched by Lubomir Host 'rajo' <host8 AT keplerDOTfmphDOTuniba.sk>) ! function! s:SmartBS(pat) ! let init = strpart(getline("."), 0, col(".")-1) ! let matchtxt = matchstr(init, a:pat) ! if matchtxt != '' ! let bstxt = substitute(matchtxt, '.', "\<bs>", 'g') ! return bstxt ! else ! return "\<bs>" ! endif ! endfun ! " }}} " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ ! function! <SID>SmartDots() ! if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! \&& strpart(getline('.'), col('.')-3, 2) == '..' ! return "\<bs>\<bs>\\cdots" ! elseif strpart(getline('.'), col('.')-3, 2) == '..' ! return "\<bs>\<bs>\\ldots" ! else ! return '.' ! endif ! endfunction " }}} " ============================================================================== --- 222,335 ---- " ============================================================================== " TexQuotes: inserts `` or '' instead of " {{{ ! if g:Tex_SmartKeyQuote ! ! " TexQuotes: inserts `` or '' instead of ! " Taken from texmacro.vim by Benji Fisher <be...@e-...> ! " TODO: Deal with nested quotes. ! function! s:TexQuotes() ! let l = line(".") ! let c = col(".") ! let restore_cursor = l . "G" . virtcol(".") . "|" ! normal! H ! let restore_cursor = "normal!" . line(".") . "Gzt" . restore_cursor ! execute restore_cursor ! if synIDattr(synID(l, c, 1), "name") =~ "^texMath" ! \ || (c > 1 && getline(l)[c-2] == '\') ! return '"' endif ! let open = exists("g:Tex_SmartQuoteOpen") ? g:Tex_SmartQuoteOpen : "``" ! let close = exists("g:Tex_SmartQuoteClose") ? g:Tex_SmartQuoteClose : "''" ! let boundary = '\|' ! if exists("s:TeX_strictquote") ! if( s:TeX_strictquote == "open" || s:TeX_strictquote == "both" ) ! let boundary = '\<' . boundary ! endif ! if( s:TeX_strictquote == "close" || s:TeX_strictquote == "both" ) ! let boundary = boundary . '\>' ! endif endif ! let q = open ! while 1 " Look for preceding quote (open or close), ignoring ! " math mode and '\"' . ! " execute 'normal ?^$\|"\|' . open . boundary . close . "\r" ! call search(open . boundary . close . '\|^$\|"', "bw") ! if synIDattr(synID(line("."), col("."), 1), "name") !~ "^texMath" ! \ && (col(".") == 1 || getline(".")[col(".")-2] != '\') ! break ! endif ! endwhile ! " Now, test whether we actually found a _preceding_ quote; if so, is it ! " and open quote? ! if ( line(".") < l || line(".") == l && col(".") < c ) ! if strlen(getline(".")) ! if ( getline(".")[col(".")-1] == open[0] ) ! let q = close ! endif endif endif ! " Return to line l, column c: ! execute restore_cursor ! return q ! endfunction ! ! endif " }}} " SmartBS: smart backspacing {{{ ! if g:Tex_SmartKeyBS ! " SmartBS: smart backspacing ! " SmartBS lets you treat diacritic characters (those \'{a} thingies) as a ! " single character. This is useful for example in the following situation: ! " ! " \v{s}\v{t}astn\'{y} ('happy' in Slovak language :-) ) ! " If you will delete this normally (without using smartBS() function), you ! " must press <BS> about 19x. With function smartBS() you must press <BS> only ! " 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are ! " deleted with one <BS>. ! " ! let s:smartBS_pat = '\(' . ! \ "\\\\[\"^'=v]{\\S}" . '\|' . ! \ "\\\\[\"^'=]\\S" . '\|' . ! \ '\\v \S' . '\|' . ! \ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' . ! \ '\\v \\[iI]' . '\|' . ! \ '\\q \S' . '\|' . ! \ '\\-' . ! \ '\)' . "$" ! fun! s:SmartBS_pat() ! return s:smartBS_pat ! endfun ! ! " This function comes from Benji Fisher <be...@e-...> ! " http://vim.sourceforge.net/scripts/download.php?src_id=409 ! " (modified/patched by Lubomir Host 'rajo' <host8 AT keplerDOTfmphDOTuniba.sk>) ! function! s:SmartBS(pat) ! let init = strpart(getline("."), 0, col(".")-1) ! let matchtxt = matchstr(init, a:pat) ! if matchtxt != '' ! let bstxt = substitute(matchtxt, '.', "\<bs>", 'g') ! return bstxt ! else ! return "\<bs>" ! endif ! endfun ! ! endif " }}} " SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{ ! if g:Tex_SmartKeyDot ! ! function! <SID>SmartDots() ! if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! \&& strpart(getline('.'), col('.')-3, 2) == '..' ! return "\<bs>\<bs>\\cdots" ! elseif strpart(getline('.'), col('.')-3, 2) == '..' ! return "\<bs>\<bs>\\ldots" ! else ! return '.' ! endif ! endfunction ! ! endif ! " }}} " ============================================================================== *************** *** 442,448 **** " smart functions ! inoremap <buffer> <silent> " "<Left><C-R>=<SID>TexQuotes()<CR><Del> ! inoremap <buffer> <silent> <BS> <C-R>=<SID>SmartBS(<SID>SmartBS_pat())<CR> ! inoremap <buffer> <silent> . <C-R>=<SID>SmartDots()<CR> " viewing/searching if !hasmapto('RunLaTeX') --- 456,469 ---- " smart functions ! if g:Tex_SmartKeyQuote ! inoremap <buffer> <silent> " "<Left><C-R>=<SID>TexQuotes()<CR><Del> ! endif ! if g:Tex_SmartKeyBS ! inoremap <buffer> <silent> <BS> <C-R>=<SID>SmartBS(<SID>SmartBS_pat())<CR> ! endif ! if g:Tex_SmartKeyDot ! inoremap <buffer> <silent> . <C-R>=<SID>SmartDots()<CR> ! endif ! " viewing/searching if !hasmapto('RunLaTeX') |
From: <sri...@us...> - 2002-12-06 09:36:57
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv19837 Modified Files: texrc Log Message: . added options to make the auctex inspired additions customizable. 1. g:Tex_PromptedEnvironments defines the environments which latex-suite will ask the user to choose from when a <F5> is pressed. 2. g:Tex_HotKeyMappings are used in the <S-F1> through <S-F4> key mappings. . added options to disable the smart key mappings like SmartBS() etc. (they are enabled by default). . fixed a little documentation bug in the header of the file. Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** texrc 27 Nov 2002 09:12:27 -0000 1.13 --- texrc 6 Dec 2002 09:36:54 -0000 1.14 *************** *** 4,11 **** " Author: Srinath Avadhanula " Created: Mon Apr 01 11:00 AM 2002 PST ! " Last Change: wto lis 26 09:00 2002 C " " Description: This file contains resource configuration information for the ! " latex-suite plugin. " " NOTE: This file should NOT be edited directly. The recommended usage --- 4,11 ---- " Author: Srinath Avadhanula " Created: Mon Apr 01 11:00 AM 2002 PST ! " Last Change: Fri Dec 06 01:00 AM 2002 PST " " Description: This file contains resource configuration information for the ! " latex-suite package. " " NOTE: This file should NOT be edited directly. The recommended usage *************** *** 15,27 **** " This is because this file will be over-written each time you " install a new copy of latex-suite. - " NOTE: This file is best viewed with Vim-6.0+ with folding turned on. " " Installation: This file should normally reside as: ! " $HOME/vimfiles/ftplugin/tex/texrc (WINDOWS) " or ! " $HOME/.vim/ftplugin/tex/texrc (UNIX) " Copy it over somewhere and then put ! " source /path/to/texrc " in your ~/.vim/ftplugin/tex.vim file. "============================================================================= --- 15,31 ---- " This is because this file will be over-written each time you " install a new copy of latex-suite. " " Installation: This file should normally reside as: ! " $HOME/vimfiles/ftplugin/latex-suite/texrc (WINDOWS) " or ! " $HOME/.vim/ftplugin/tex/latex-suite/texrc (UNIX) ! " " Copy it over somewhere and then put ! " ! " source /path/to/copy/of/texrc ! " " in your ~/.vim/ftplugin/tex.vim file. + " + " NOTE: This file is best viewed with Vim-6.0+ with folding turned on. "============================================================================= *************** *** 169,181 **** " latex. " ! " Most of the AUC-TeX key-bindings are there. In addition there are a ! " comprehensive set of macros to insert environments, sections, fonts etc. In ! " addition to insert mode macros, visual mode macros are provided. ! ! " Place Holder Options: " (See |placeholders| for a description of what place-holders are). " " these options are actually used by imaps.vim, therefore the prefix is Imap_ ! " and not Tex_. See |help placeholders| for a description of how to use " place-holders. You can either completely disable placeholders (not " recommended) and/or you can change the place holder characters. The Start --- 173,181 ---- " latex. " ! " Place Holder Options: {{{ " (See |placeholders| for a description of what place-holders are). " " these options are actually used by imaps.vim, therefore the prefix is Imap_ ! " and not Tex_. See |placeholders| for a description of how to use " place-holders. You can either completely disable placeholders (not " recommended) and/or you can change the place holder characters. The Start *************** *** 186,195 **** --- 186,210 ---- TexLet g:Imap_PlaceHolderEnd = '»' + " }}} + " Menu Wizard Option: {{{ + " If the following 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 a template with |placeholders| marking off + " the places where fields need to be filled. + TexLet g:Tex_UseMenuWizard = 0 + + " }}} + " Visual Mode Mapping Correction: {{{ " With so many visual maps, its helpful to have a way of catching typing " errors made in visual mode. What this does is to prompt you to correct your " visual mode mapping if you start out with g:Tex_Leader and then type some " illegal keys. + " It basically maps just the g:Tex_Leader character to a function TexLet g:Tex_CatchVisMapErrors = 1 + " }}} + " Diacritics: {{{ " whether or not you want to use diacritics " (diacritics speed up typing some languages. the way they are set up in *************** *** 201,204 **** --- 216,221 ---- TexLet g:Tex_Diacritics = 1 + " }}} + " Leader Options: {{{ " The mappings in latex-suite are by default prefixed with the back-tick " character. For example, `/ inserts \frac{«»}{«»}«» etc. You can change the *************** *** 214,217 **** --- 231,235 ---- TexLet g:Tex_Leader2 = ',' + " }}} " Environment Macros: {{{ " These mappings insert LaTeX "environments" such as *************** *** 250,256 **** TexLet g:Tex_EnvironmentMenus = 1 - " Use wizards for environments during choosing from menu or templates as from - " shortcuts. - TexLet g:Tex_UseMenuWizard = 0 " }}} --- 268,271 ---- *************** *** 301,304 **** --- 316,392 ---- " }}} + " Auctex Style Mappings: {{{ + " Auctex.vim has heavily inspired various portions of latex-suite providing + " various new ways of conviniently inserting environments. + " + " If you press <F5> 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 name. + " The variable below (which is a comma seperated list of environment names) + " decides the prompt which latex-suite generates. + " You can place as many items as you want here. If the environment name is a + " standard latex environment such as table or figure, then latex-suite will + " insert a template with additional fields, if not, just a bare bones + " \begin{env} + " «» + " \end{env} + " is inserted. + " \[ and $$ are also recognized. + " NOTE: Setting this variable to the empty string is a way of leaving the + " <F5> key unmapped + + TexLet g:Tex_PromptedEnvironments = + \ 'eqnarray*,eqnarray,equation,equation*,\[,$$,align,align*' + + " Another quick way of inserting environments is to press one of the shifted + " function keys from <F1> through <F4>. + " Each environment in the following list is mapped to a corresponding shifted + " function key. + " NOTE: Setting this variable to the empty string is a way of leaving all the + " shifted function keys untouched by latex-suite. + " NOTE: Only the first 4 items of the list are used. The rest will be silently + " ignored. + " The number of items in this list decides how many shifted function keys are + " mapped. + TexLet g:Tex_HotKeyMappings = + \ 'eqnarray*,eqnarray,bmatrix' + + " }}} + " Smart Key Mappings: {{{ + " Latex-suite shites with a number of 'smart' maps, where the behavior of + " standard keys is modified in a way which makes editing tex files easy. + + " Pressing <BS> in insert mode checks to see whether we are just after + " something like \'{a} and if so, deletes all of it. i.e, diacritics are + " treated as single characters for backspacing. + " Setting this to zero will leave the <BS> key unmapped. + TexLet g:Tex_SmartKeyBS = 1 + + " Pressing " (english double quote) will insert `` or '' by making an + " intelligent guess about whether we intended to open or close a quote. + TexLet g:Tex_SmartKeyQuote = 1 + + " Users of other languages might want to change the quote characters to suit + " their locale. + TexLet g:Tex_SmartQuoteOpen = "``" + TexLet g:Tex_SmartQuoteClose = "''" + + " Latex-suite maps the <space> key in such a way that $ characters are not + " broken across lines. + " NOTE: Setting this to 1 has the side-effect of making the 'tw' setting be 0. + TexLet g:Tex_SmartKeySpace = 1 + + " Pressing ... (3 dots) results in \ldots outside math mode and \cdots in math + " mode. + " + " TODO: Make it more intelligent within math mode. For example + " $1+...+3$ should expand to $1+\cdots+n$, whereas $1,...,n$ should expand + " to $1,\ldots,n$. The amsmath package actually provides a command \dots + " which does this. Maybe use that if amsmath is detected? + " + TexLet g:Tex_SmartKeyDot = 1 + + " }}} + " }}} " ============================================================================== |
From: <sri...@us...> - 2002-12-06 09:32:32
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv19133 Modified Files: latex-suite.txt Log Message: . Some grammatical mistakes in the copyright para corrected. . custom macros was wrongly linked to macros. TODO: still have to add docs about the new additions in envmacros.vim Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** latex-suite.txt 27 Nov 2002 09:12:30 -0000 1.7 --- latex-suite.txt 6 Dec 2002 09:32:29 -0000 1.8 *************** *** 1,5 **** *latex-suite* Tools for an enhanced LaTeX environment in Vim For Vim version 6.0 and above. ! Last Change: wto lis 26 10:00 2002 C By Srinath Avadhanula <sr...@fa...>, --- 1,5 ---- *latex-suite* Tools for an enhanced LaTeX environment in Vim For Vim version 6.0 and above. ! Last Change: Fri Dec 06 01:00 AM 2002 PST By Srinath Avadhanula <sr...@fa...>, *************** *** 16,22 **** helped. ! For license and conditions of use look |copyright|. All occurences of ``Vim'' ! replace with ``latexSuite'', and as maintainers and owners of copyrights are ! Srinath Avadhanula and Mikolaj Machowski. Homepage: http://vim-latex.sourceforge.net --- 16,23 ---- 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 ! Avadhanula and Mikolaj Machowski. Homepage: http://vim-latex.sourceforge.net *************** *** 49,54 **** " TIP: if you write your \label's as \label{fig:something}, then if you " type in \ref{fig: and press <C-n> you will automatically cycle through ! " all the figure labels. < set iskeyword+=: > --- 50,58 ---- " TIP: if you write your \label's as \label{fig:something}, then if you " type in \ref{fig: and press <C-n> you will automatically cycle through ! " all the figure labels. Very useful! < set iskeyword+=: > + " IMPORTANT: If you are a win32 user, then the following setting is + " necessary in order to have latex called correctly from within vim. + < set shellslash *************** *** 58,100 **** list of variables which can be customized. ! TABLE OF CONTENTS *latex-suite-toc* ! |latex-macros| Insert and visual mode mappings and menu items for ! commonly used LaTeX typesetting elements ! |latex-compiling| This version of latex-suite ships with a version of the ! compiler specification which produces slightly less ! verbose output. It can also be dynamically re-configured ! to change the verbosity level. ! |latex-viewing| This is a set of functions which open up the compiled .dvi ! document using the specified DVI viewer. ! |latex-searching| Xdvi (for UNIX) and Yap (for Windows) both provide ways ! for "forward searching" LaTeX documents. This section ! describes how to use these features and how to set up your ! dvi viewer to best use this feature. ! |latex-folding| manual folding based on LaTeX syntax elements. ! |latex-packages| This module provides a way to generate custom menus based ! on the packages used in the file being edited. ! |latex-templates| Custom templates ! |latex-macros| Custom macros ! |latex-help| LaTeX's tex-info file translated into a vim help file. ! |latex-dictionary| A dictionary of standard LaTeX terms. ! |latex-tools| This version of latex-suite also ships with 2 external ! tools: ! 1. |vimlatex| an external utility which filters the output ! of the LaTeX compiler in order to ensure a more robust ! error-parsing. ! 2. |ltags| A script to generate a tags file. It recognizes ! files being \input'ed into a main file. ! (ltags is written by Dimitri Antoniou) }}} =========================================================================== --- 62,106 ---- list of variables which can be customized. ! }}} ! =========================================================================== ! TABLE OF CONTENTS *latex-suite-toc* {{{ ! |latex-macros| Insert and visual mode mappings and menu items for ! commonly used LaTeX typesetting elements ! |latex-compiling| This version of latex-suite ships with a version of the ! compiler specification which produces slightly less ! verbose output. It can also be dynamically re-configured ! to change the verbosity level. ! |latex-viewing| This is a set of functions which open up the compiled ! .dvi document using the specified DVI viewer. ! |latex-searching| Xdvi (for UNIX) and Yap (for Windows) both provide ways ! for "forward searching" LaTeX documents. This section ! describes how to use these features and how to set up ! your dvi viewer to best use this feature. ! |latex-folding| manual folding based on LaTeX syntax elements. ! |latex-packages| This module provides a way to generate custom menus based ! on the packages used in the file being edited. ! |latex-templates| Custom templates ! |latex-custom-macros| Custom macros ! |latex-help| LaTeX's tex-info file translated into a vim help file. ! |latex-dictionary| A dictionary of standard LaTeX terms. ! |latex-tools| This version of latex-suite also ships with 2 external ! tools: ! 1. |vimlatex| an external utility which filters the output ! of the LaTeX compiler in order to ensure a more robust ! error-parsing. ! 2. |ltags| A script to generate a tags file. It recognizes ! files being \input'ed into a main file. ! (ltags is written by Dimitri Antoniou) }}} =========================================================================== *************** *** 367,371 **** and displays the errors in a |quickfix-window|. You can then scroll through the errors and press <enter> to be taken to the location of the corresponding ! error. |latex-compiler-target| : specifying a different target format for --- 373,379 ---- and displays the errors in a |quickfix-window|. You can then scroll through the errors and press <enter> to be taken to the location of the corresponding ! error. Along with the errors being listed in the quickfix window, the log file ! corresponding is also opened in |preview| mode. It is scrolled automatically ! to keep in sync with the error being viewed in the quickfix window. |latex-compiler-target| : specifying a different target format for |
From: <sri...@us...> - 2002-12-06 08:46:04
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv1609 Modified Files: main.vim Log Message: . moved over the smart space functions and mappings into a new file called ftplugin/tex/smartspace.vim I think this is the way to go as far as extending goes. We do not want to keep changing core latex-suite files each time some new functionality needs to be added. The ftplugin file mechanism provides a very robust way to letting each module take care of redefinition, reinclusion etc. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** main.vim 25 Nov 2002 01:20:13 -0000 1.12 --- main.vim 6 Dec 2002 08:46:02 -0000 1.13 *************** *** 4,8 **** " Email: sr...@fa... " URL: ! " Last Change: pon lis 25 12:00 2002 C " " Help: --- 4,8 ---- " Email: sr...@fa... " URL: ! " Last Change: Fri Dec 06 12:00 AM 2002 PST " " Help: *************** *** 235,240 **** return '"' endif ! let open = exists("s:TeX_open") ? s:TeX_open : "``" ! let close = exists("s:TeX_close") ? s:TeX_close : "''" let boundary = '\|' if exists("s:TeX_strictquote") --- 235,240 ---- return '"' endif ! let open = exists("g:Tex_SmartQuoteOpen") ? g:Tex_SmartQuoteOpen : "``" ! let close = exists("g:Tex_SmartQuoteClose") ? g:Tex_SmartQuoteClose : "''" let boundary = '\|' if exists("s:TeX_strictquote") *************** *** 318,373 **** endif endfunction " }}} - " TexFormatLine: format line retaining $$'s on the same line. {{{ - function! s:TexFill(width) " {{{ - if col(".") > a:width - exe "normal! a##\<Esc>" - call <SID>TexFormatLine(a:width) - exe "normal! ?##\<CR>2s\<Esc>" - endif - endfunction - - " }}} - function! s:TexFormatLine(width) " {{{ - let first = strpart(getline(line(".")),0,1) - normal! $ - let length = col(".") - let go = 1 - while length > a:width+2 && go - let between = 0 - let string = strpart(getline(line(".")),0,a:width) - " Count the dollar signs - let number_of_dollars = 0 - let evendollars = 1 - let counter = 0 - while counter <= a:width-1 - if string[counter] == '$' && string[counter-1] != '\' " Skip \$. - let evendollars = 1 - evendollars - let number_of_dollars = number_of_dollars + 1 - endif - let counter = counter + 1 - endwhile - " Get ready to split the line. - exe "normal! " . (a:width + 1) . "|" - if evendollars - " Then you are not between dollars. - exe "normal! ?\\$\\| \<CR>W" - else - " Then you are between dollars. - normal! F$ - if col(".") == 1 || strpart(getline(line(".")),col(".")-1,1) != "$" - let go = 0 - endif - endif - if first == '$' && number_of_dollars == 1 - let go = 0 - else - exe "normal! i\<CR>\<Esc>$" - let first = strpart(getline(line(".")),0,1) - endif - let length = col(".") - endwhile - endfunction - " }}} - " }}} " ============================================================================== --- 318,321 ---- *************** *** 477,491 **** " Finally set up the folding, options, mappings and quit. " ============================================================================== - " Save 'tw' - let textw = &textwidth - " SetTeXOptions: sets options/mappings for this file. {{{ function! <SID>SetTeXOptions() - " ':' is included because most labels are of the form, - " fig:label, etc. - setlocal isk+=: exe 'setlocal dict+='.s:path.'/dictionaries/dictionary' - setlocal sw=2 - setlocal ts=2 setlocal foldtext=TexFoldTextFunction() --- 425,431 ---- *************** *** 505,518 **** inoremap <buffer> <silent> <BS> <C-R>=<SID>SmartBS(<SID>SmartBS_pat())<CR> inoremap <buffer> <silent> . <C-R>=<SID>SmartDots()<CR> - " for FormatLine {{{ - if &l:tw > 0 - let b:tw = &l:tw - else - let b:tw = 79 - endif - " The following is necessary for TexFormatLine() and TexFill() - setlocal tw=0 - inoremap <buffer> <silent> <Space> <Space><Esc>:call <SID>TexFill(b:tw)<CR>a - " }}} " viewing/searching if !hasmapto('RunLaTeX') --- 445,448 ---- *************** *** 539,545 **** " Mappings defined in package files will overwrite all other exe 'source '.s:path.'/packages.vim' - - " Restore 'tw' - let &textwidth = textw let &cpo = s:save_cpo --- 469,472 ---- |
From: <sri...@us...> - 2002-12-06 06:44:06
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv21247 Modified Files: envmacros.vim Log Message: . removed a bug in the definition of the table macro. the caption is now placed below the tabular environment and the \cation{} is no longer \caption{tab:«»}. Index: envmacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/envmacros.vim,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** envmacros.vim 20 Nov 2002 10:04:21 -0000 1.9 --- envmacros.vim 6 Dec 2002 06:44:03 -0000 1.10 *************** *** 3,7 **** " Author: Mikolaj Machowski " Created: Tue Apr 23 08:00 PM 2002 PST ! " Last Change: ¶ro lis 20 10:00 2002 C " " Description: mappings/menus for environments. --- 3,7 ---- " Author: Mikolaj Machowski " Created: Tue Apr 23 08:00 PM 2002 PST ! " Last Change: Thu Dec 05 10:00 PM 2002 PST " " Description: mappings/menus for environments. *************** *** 26,30 **** let s:theindex = "\\begin{theindex}{«label»}{«commands»}\<cr>\\item «»\<cr>\\end{theindex}«»" let s:trivlist = "\\begin{trivlist}{«label»}{«commands»}\<cr>\\item «»\<cr>\\end{trivlist}«»" ! let s:table = "\\begin{table}\<cr>\\centering\<cr>\\caption{tab:ä}\<cr>\\begin{tabular}{«dimensions»}\<cr>«»\<cr>\\end{tabular}\<cr>\\label{tab:«label»}\<cr>\\end{table}«»" let s:array = "\\leftä\<cr>\\begin{array}{«dimension»}\<cr>«elements»\<cr>\\end{array}\<cr>\\right«»" let s:description ="\\begin{description}\<cr>\\item[«label»]«»\<cr>\\end{description}«»" --- 26,30 ---- let s:theindex = "\\begin{theindex}{«label»}{«commands»}\<cr>\\item «»\<cr>\\end{theindex}«»" let s:trivlist = "\\begin{trivlist}{«label»}{«commands»}\<cr>\\item «»\<cr>\\end{trivlist}«»" ! let s:table = "\\begin{table}\<cr>\\centering\<cr>\\begin{tabular}{«dimensions»}\<cr>«»\<cr>\\end{tabular}\<cr>\\caption{«Caption text»}\<cr>\\label{tab:«label»}\<cr>\\end{table}«»" let s:array = "\\leftä\<cr>\\begin{array}{«dimension»}\<cr>«elements»\<cr>\\end{array}\<cr>\\right«»" let s:description ="\\begin{description}\<cr>\\item[«label»]«»\<cr>\\end{description}«»" |
From: <sri...@us...> - 2002-12-06 06:36:03
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv19916 Modified Files: custommacros.vim Log Message: . s/TeX_pack_all/Tex_pack_all/ Index: custommacros.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/custommacros.vim,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** custommacros.vim 21 May 2002 16:41:27 -0000 1.6 --- custommacros.vim 6 Dec 2002 06:36:00 -0000 1.7 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: czw maj 09 10:00 2002 U " " Description: functions for processing custom macros in the --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Thu Dec 05 10:00 PM 2002 PST " " Description: functions for processing custom macros in the *************** *** 117,121 **** silent! normal! v15l"_x ! call TeX_pack_all() silent! exe pos --- 117,121 ---- silent! normal! v15l"_x ! call Tex_pack_all() silent! exe pos |
From: <sri...@us...> - 2002-12-02 19:50:20
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv3951 Modified Files: compiler.vim Log Message: More bug fixes from after last time. Hopefully, this is the stabilizing version for this feature... . Bug fix from last time, where for a warning, the log window would not be positioned at all. . make going to the column a little more consistent. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** compiler.vim 27 Nov 2002 10:25:07 -0000 1.17 --- compiler.vim 2 Dec 2002 19:25:29 -0000 1.18 *************** *** 3,7 **** " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Tue Nov 26 11:00 PM 2002 PST " " Description: functions for compiling/viewing/searching latex documents --- 3,7 ---- " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Thu Nov 28 01:00 AM 2002 PST " " Description: functions for compiling/viewing/searching latex documents *************** *** 272,276 **** " if we are on an error, then count the number of lines before this in the " quickfix window with an error on the same line. ! if errpat =~ 'error' " our location in the quick fix window. let errline = line('.') --- 272,276 ---- " if we are on an error, then count the number of lines before this in the " quickfix window with an error on the same line. ! if errpat =~ 'error|$' " our location in the quick fix window. let errline = line('.') *************** *** 299,302 **** --- 299,304 ---- endif endwhile + else + let numrep = 1 endif *************** *** 321,330 **** " us to the preview window. wincmd j ! if searchpat =~ 'l.\d\+' && numrep > 1 ! while numrep > 0 ! call search(searchpat, 'W') ! let numrep = numrep - 1 ! endwhile ! endif normal! z. --- 323,332 ---- " us to the preview window. wincmd j ! " now search forward from this position in the preview window for the ! " numrep^th error of the current line in the quickfix window. ! while numrep > 0 ! call search(searchpat, 'W') ! let numrep = numrep - 1 ! endwhile normal! z. *************** *** 385,389 **** let normcmd = "0/\\V".escape(partline, "\\")."/e+1\<CR>" else ! let column = strlen(brokenline) let normcmd = column.'|' endif --- 387,391 ---- let normcmd = "0/\\V".escape(partline, "\\")."/e+1\<CR>" else ! let column = strlen(brokenline) + 1 let normcmd = column.'|' endif |
From: <sri...@us...> - 2002-12-02 13:09:19
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv12338 Modified Files: imaps.vim Log Message: A very difficult fix for the encoding problem... Bug: When 'encoding' is set to utf8, then macros dont work. i.e, typing () results in (ä)«» with the cursor placed at the end. Cause: The behavior of vim changes according to the current encoding. Solution: 1. When latex-suite is first called, temporarily set encoding to latin1, source all the files and then reset it to the original value. This ensures that the scripts rely on a consistent encoding scheme. 2. Whenever we do encoding specific stuff, then switch back to latin1, do our stuff and then switch back. This is complicated by the fact that while inserting text (using the Imap_PutText...() function), we need to insert the placeholders in the curret locale, not latin1, otherwise the user will see things like <ab> and <bb> instead of « and ». Therefore, the jump function needs to account for the fact that the characters are no longer in latin1... TODO: Document these changes asap otherwise I will completeley forget why I did what I did... Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** imaps.vim 12 Nov 2002 18:24:01 -0000 1.5 --- imaps.vim 2 Dec 2002 13:09:16 -0000 1.6 *************** *** 5,9 **** " Description: insert mode template expander with cursor placement " while preserving filetype indentation. ! " Last Change: Mon Nov 04 02:00 PM 2002 PST " " Documentation: {{{ --- 5,9 ---- " Description: insert mode template expander with cursor placement " while preserving filetype indentation. ! " Last Change: Mon Dec 02 04:00 AM 2002 PST " " Documentation: {{{ *************** *** 271,274 **** --- 271,277 ---- function! IMAP_PutTextWithMovement(text) + let s:oldenc = &encoding + let &encoding='latin1' + let text = a:text *************** *** 330,334 **** let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" " BNF 12 Nov 2002: Functions never add more than one item to the searcg ! " history. I do not recall where this is documented... " let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" --- 333,337 ---- let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" " BNF 12 Nov 2002: Functions never add more than one item to the searcg ! " history. " let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" *************** *** 341,349 **** " otherwise enter select mode... else ! let movement = movement."vf".phe."\<C-g>" end end return initial.text.movement endfunction --- 344,354 ---- " otherwise enter select mode... else ! let movement = movement."v/".iconv(phe, 'latin1', s:oldenc)."\<CR>\<C-g>" end end + let &encoding = s:oldenc return initial.text.movement + endfunction *************** *** 355,358 **** --- 360,366 ---- " modified by SA to use optional place holder characters. function! IMAP_Jumpfunc() + let s:oldenc = &encoding + setglobal encoding=latin1 + let phs = '«' let phe = '»' *************** *** 370,388 **** endif ! if !search(phs.'.\{-}'.phe,'W') "no more marks echomsg "no marks found\n" return "\<CR>" else ! if getline('.')[col('.')] == phe ! return "\<Del>\<Del>" else if col('.') > 1 ! return "\<Esc>lvf".phe."\<C-g>" else ! return "\<C-\>\<C-n>vf".phe."\<C-g>" endif endif endif endfunction " map only if there is no mapping already. allows for user customization. if !hasmapto('IMAP_Jumpfunc') --- 378,406 ---- endif ! let phsc = iconv(phs, 'latin1', s:oldenc) ! let phec = iconv(phe, 'latin1', s:oldenc) ! ! if !search(phsc.'.\{-}'.phec,'W') "no more marks echomsg "no marks found\n" return "\<CR>" else ! if strpart ( ! \ getline('.'), ! \ col('.') + strlen(phsc) - 1, ! \ strlen(phec) ! \ ! \ ) == phec ! ! return substitute(phsc.phec, '.', "\<Del>", 'g')."\<C-r>=RestoreEncoding()\<CR>" else if col('.') > 1 ! return "\<Esc>lv/".phec."\<CR>\<Esc>:call RestoreEncoding()\<CR>gv\<C-g>" else ! return "\<C-\>\<C-n>v/".phe."\<CR>\<Esc>:call RestoreEncoding()\<CR>gv\<C-g>" endif endif endif endfunction + " map only if there is no mapping already. allows for user customization. if !hasmapto('IMAP_Jumpfunc') *************** *** 391,394 **** --- 409,418 ---- end " }}} + " RestoreEncoding: restores file encoding to what it was originally {{{ + " Description: + function! RestoreEncoding() + let &g:encoding = s:oldenc + return '' + endfunction " }}} nmap <silent> <script> <plug>«SelectRegion» `<v`> |
From: <mi...@us...> - 2002-11-30 14:56:46
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv8641 Modified Files: packages.vim Log Message: bug fix release: something wrong is with inserting packages from line (O in []) Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** packages.vim 29 Nov 2002 22:02:58 -0000 1.11 --- packages.vim 30 Nov 2002 14:56:43 -0000 1.12 *************** *** 3,7 **** " Author: Mikolaj Machowski " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: pi± lis 29 09:00 2002 C " " Description: handling packages from within vim --- 3,7 ---- " Author: Mikolaj Machowski " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: sob lis 30 03:00 2002 C " " Description: handling packages from within vim *************** *** 50,54 **** function! Tex_pack_uncheck(package) if has("gui_running") && filereadable(s:path.'/packages/'.a:package) ! exe 'aunmenu '.s:p_menu_lev.'&'.a:package endif if filereadable(s:path.'/dictionaries/'.a:package) --- 50,54 ---- function! Tex_pack_uncheck(package) if has("gui_running") && filereadable(s:path.'/packages/'.a:package) ! exe 'silent! aunmenu '.s:p_menu_lev.'&'.a:package endif if filereadable(s:path.'/dictionaries/'.a:package) *************** *** 347,351 **** " Tex_pack_supp: "supports" the package... {{{ function! Tex_pack_supp(supp_pack) ! call Tex_pack(a:supp_pack) exe 'let g:s_p_o = g:TeX_package_option_'.a:supp_pack if exists('g:s_p_o') && g:s_p_o != '' --- 347,351 ---- " Tex_pack_supp: "supports" the package... {{{ function! Tex_pack_supp(supp_pack) ! call Tex_pack_check(a:supp_pack) exe 'let g:s_p_o = g:TeX_package_option_'.a:supp_pack if exists('g:s_p_o') && g:s_p_o != '' *************** *** 368,375 **** if filereadable(s:path.'/packages/'.a:package) call Tex_pack_supp(a:package) - call Tex_pack_updateall() else exe 'normal i\usepackage{'.a:package."}\<Esc>$" endif endfunction " }}} --- 368,375 ---- if filereadable(s:path.'/packages/'.a:package) call Tex_pack_supp(a:package) else exe 'normal i\usepackage{'.a:package."}\<Esc>$" endif + call Tex_pack_updateall() endfunction " }}} |
From: <mi...@us...> - 2002-11-29 22:03:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv10456 Modified Files: polski Log Message: improved version of package file Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** polski 25 Nov 2002 00:01:05 -0000 1.4 --- polski 29 Nov 2002 22:03:10 -0000 1.5 *************** *** 1,5 **** " Author: Mikolaj Machowski <mi...@wp...> " (c) Copyright by Mikolaj Machowski 2002 ! " Last Change: pon lis 25 12:00 2002 C " License: Vim Charityware " --- 1,5 ---- " Author: Mikolaj Machowski <mi...@wp...> " (c) Copyright by Mikolaj Machowski 2002 ! " Last Change: czw lis 28 01:00 2002 C " License: Vim Charityware " *************** *** 58,62 **** " " Spacja ! inoremap <buffer> <silent> <Space> <Space><C-R>=<SID>Tex_polish_space()<CR> " Wymuszenie tyldy --- 58,63 ---- " " Spacja ! inoremap <buffer> <silent> <Space> <C-R>=<SID>Tex_polish_space()<CR> ! inoremap <buffer> <silent> <CR> <C-R>=<SID>Tex_polish_space()<CR><BS><CR> " Wymuszenie tyldy *************** *** 68,130 **** "Nic magicznego w matematyce if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! return "\<BS> " else let s:col = col('.') let s:linelength = strlen(getline('.')) + 1 " Wstaw tylde po spojnikach ! if strpart(getline('.'), col('.') - 4, 3) =~? '^[ ~(]\?[aiouwz] $' ! return "\<BS>~" " Wstaw tylde po inicjalach - konkretnie po pojedynczych wielkich ! " literach i kropce. Obs³uguje wiekszosc sytuacji. ! elseif strpart(getline('.'), col('.') - 5, 4) =~? '^[ ~]\?\u\. $' ! return "\<BS>~" " Wstaw tylde po tytulach, skrotach bibliograficznych, podpisach ! elseif strpart(getline('.'), col('.') - 9, 8) =~? '\(\s\|^\|\~\)\(str\.\|ryc\.\|rys\.\|tab\.\|art\.\|vol\.\|nr\|tabl\.\|rozdz\.\|ss\.\|s\.\|t\.\|z\.\|sir\|prof\.\|hab\.\|red\.\|min\.\|gen\.\|kpt\.\|przew\.\|p³k\|mjr\|mgr\|bp\|ks\.\|o\+\.\|¶w\.\|dr\)\s\+$' ! return "\<BS>~" " Wstaw tylde miedzy rokiem, wiekiem, a odpowiednim skrotem ! elseif strpart(getline('.'), col('.') - 8, 7) =~? '[0-9IVXLCM]\s\+\(r\|w\)\.[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/[0-9IVXLCM]\zs\s\+\ze\(w\|r\)\.[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\~/ei exe 'normal '.s:col.'|' if s:col == s:linelength ! return "\<Del> " else ! return "\<Left> \<Del>" endif " Wstaw tylde miedzy liczba a miara, itd. ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/\(\d\|mln\|mld\|tys\.\)\zs\s\+\ze\(z³\|gr\|ha\|m\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\~/ei exe 'normal '.s:col.'|' if s:col == s:linelength ! return "\<Del> " else ! return "\<Left> \<Del>" endif " Rozwin myslnik w zbitkach w '\dywiz ': " bialo-czerwony -> bialo\dywiz czerwony ! elseif strpart(getline('.'), col('.') - 20, 19) =~? '[a-z±æê³ñó¶¿¼]-[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/[a-z±æê³ñó¶¿¼]\zs-\ze[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\\dywiz /ei let colb = s:col + 6 exe 'normal '.colb.'|' if s:col == s:linelength ! return "\<Del> " else ! return "\<Left> \<Del>" endif " Rozwin '--' miedzy liczbami w '\ppauza ': " 39--45 -> 39\ppauza 45 ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '[0-9IVXLCM]--[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}\s\+$' ! s/[0-9IVXLCM]\zs--\ze[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}\s\+\%#/\\ppauza /ei let colb = s:col + 6 exe 'normal '.colb.'|' if s:col == s:linelength ! return "\<Del> " else ! return "\<Left> \<Del>" endif endif " Tu koncz komentowanie ostatniej sekcji endif ! return "\<BS> " endfunction ! " vim:ft=vim --- 69,135 ---- "Nic magicznego w matematyce if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! return ' ' else let s:col = col('.') let s:linelength = strlen(getline('.')) + 1 " Wstaw tylde po spojnikach ! if strpart(getline('.'), col('.') - 3, 2) =~? '^[[:space:]~(\[{]\?[aiouwz]$' ! return '~' " Wstaw tylde po inicjalach - konkretnie po pojedynczych wielkich ! " literach i kropce. Obs³uguje poprawnie wiekszosc sytuacji. ! elseif strpart(getline('.'), col('.') - 4, 3) =~? '^[[:space:]~(\[{]\?\u\.$' ! return '~' " Wstaw tylde po tytulach, skrotach bibliograficznych, podpisach ! elseif strpart(getline('.'), col('.') - 9, 8) =~? '\(\s\|^\|\~\)\(str\.\|ryc\.\|rys\.\|tab\.\|art\.\|vol\.\|nr\|tabl\.\|rozdz\.\|ss\.\|s\.\|t\.\|z\.\|sir\|prof\.\|hab\.\|red\.\|min\.\|gen\.\|kpt\.\|przew\.\|p³k\|mjr\|mgr\|bp\|ks\.\|o\+\.\|¶w\.\|dr\)$' ! return '~' " Wstaw tylde miedzy rokiem, wiekiem, a odpowiednim skrotem ! elseif strpart(getline('.'), col('.') - 8, 7) =~? '[0-9IVXLCM]\s\+\(r\|w\)\.[^a-z±æê³ñó¶¿¼]\{-}$' ! s/[0-9IVXLCM]\zs\s\+\ze\(w\|r\)\.[^a-z±æê³ñó¶¿¼]\{-}\%#/\~/ei exe 'normal '.s:col.'|' if s:col == s:linelength ! startinsert! else ! startinsert endif + return ' ' " Wstaw tylde miedzy liczba a miara, itd. ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}$' ! s/\(\d\|mln\|mld\|tys\.\)\zs\s\+\ze\(z³\|gr\|ha\|m\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}\%#/\~/ei exe 'normal '.s:col.'|' if s:col == s:linelength ! startinsert! else ! startinsert endif + return ' ' " Rozwin myslnik w zbitkach w '\dywiz ': " bialo-czerwony -> bialo\dywiz czerwony ! elseif strpart(getline('.'), col('.') - 20, 19) =~? '[a-z±æê³ñó¶¿¼]-[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}$' ! s/[a-z±æê³ñó¶¿¼]\zs-\ze[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}\%#/\\dywiz /ei let colb = s:col + 6 exe 'normal '.colb.'|' if s:col == s:linelength ! startinsert! else ! startinsert endif + return ' ' " Rozwin '--' miedzy liczbami w '\ppauza ': " 39--45 -> 39\ppauza 45 ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '[0-9IVXLCM]--[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}$' ! s/[0-9IVXLCM]\zs--\ze[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}\%#/\\ppauza /ei let colb = s:col + 6 exe 'normal '.colb.'|' if s:col == s:linelength ! startinsert! else ! startinsert endif + return ' ' endif " Tu koncz komentowanie ostatniej sekcji endif ! return " " endfunction ! " vim:ft=vim:ff=unix |
From: <mi...@us...> - 2002-11-29 22:03:04
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv10352 Modified Files: packages.vim Log Message: - now functions, maps etc. in package files are sourced also for non-gui Vims - removed Version flag Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** packages.vim 23 Nov 2002 17:16:56 -0000 1.10 --- packages.vim 29 Nov 2002 22:02:58 -0000 1.11 *************** *** 2,8 **** " File: packages.vim " Author: Mikolaj Machowski - " Version: 1.0 " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: sob lis 23 02:00 2002 C " " Description: handling packages from within vim --- 2,7 ---- " File: packages.vim " Author: Mikolaj Machowski " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: pi± lis 29 09:00 2002 C " " Description: handling packages from within vim *************** *** 31,36 **** " function! Tex_pack_check(package) ! if has("gui_running") && filereadable(s:path.'/packages/'.a:package) ! call Tex_pack(a:package) let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif --- 30,38 ---- " function! Tex_pack_check(package) ! if filereadable(s:path.'/packages/'.a:package) ! exe 'source ' . s:path . '/packages/' . a:package ! if has("gui_running") ! call Tex_pack(a:package) ! endif let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif *************** *** 47,51 **** " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui") && filereadable(s:path.'/packages/'.a:package) exe 'aunmenu '.s:p_menu_lev.'&'.a:package endif --- 49,53 ---- " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui_running") && filereadable(s:path.'/packages/'.a:package) exe 'aunmenu '.s:p_menu_lev.'&'.a:package endif *************** *** 199,203 **** let g:p_file = s:path . '/packages/' . a:pack if filereadable(g:p_file) ! exe 'source ' . g:p_file exe 'let g:p_list = g:TeX_package_' . a:pack exe 'let g:p_o_list = g:TeX_package_option_' . a:pack --- 201,205 ---- let g:p_file = s:path . '/packages/' . a:pack if filereadable(g:p_file) ! "exe 'source ' . g:p_file exe 'let g:p_list = g:TeX_package_' . a:pack exe 'let g:p_o_list = g:TeX_package_option_' . a:pack |
From: <sri...@us...> - 2002-11-27 10:25:11
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv17073 Modified Files: compiler.vim Log Message: More bug fixes/robustification. Took care of potential problems when . more than 2 files have errors on the same line. . the file with the error is being \inputed into the main file. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** compiler.vim 27 Nov 2002 08:18:24 -0000 1.16 --- compiler.vim 27 Nov 2002 10:25:07 -0000 1.17 *************** *** 38,42 **** else call input( ! \'No compilation rule defined for target '.target."\n". \'Please specify a rule in texrc.vim'."\n". \' :help latex-compiler-target'."\n". --- 38,42 ---- else call input( ! \'No '.a:type.' rule defined for target '.target."\n". \'Please specify a rule in texrc.vim'."\n". \' :help latex-compiler-target'."\n". *************** *** 127,131 **** exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> <enter>:call GotoErrorLocation("'.mainfname.'", '.winnum.')<CR>' setlocal nowrap --- 127,131 ---- exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> :call GotoErrorLocation("'.mainfname.'")<CR>' setlocal nowrap *************** *** 133,137 **** " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! call GotoErrorLocation(mainfname, winnum) endif --- 133,137 ---- " resize the window to just fit in with the number of lines. exec ( line('$') < 4 ? line('$') : 4 ).' wincmd _' ! call GotoErrorLocation(mainfname) endif *************** *** 237,240 **** --- 237,248 ---- " }}} + + " ============================================================================== + " Helper functions for + " . viewing the log file in preview mode. + " . syncing the display between the quickfix window and preview window + " . going to the correct line _and column_ number from from the quick fix + " window. + " ============================================================================== " PositionPreviewWindow: positions the preview window correctly. {{{ " Description: *************** *** 244,251 **** --- 252,261 ---- " lines in the quickfix window before this line which also contain lines " like |10 error|. + " function! PositionPreviewWindow(filename) if getline('.') !~ '|\d\+ \(error\|warning\)|' if !search('|\d\+ \(error\|warning\)|') + echomsg "not finding error pattern anywhere in quickfix window :".bufname(bufnr('%')) pclose! return *************** *** 253,259 **** endif ! " extract the error pattern (something like '|10 error|') on the current ! " line. ! let errpat = matchstr(getline('.'), '\zs|\d\+ \(error\|warning\)|\ze') " extract the line number from the error pattern. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(error\|warning\)|') --- 263,270 ---- endif ! " extract the error pattern (something like 'file.tex|10 error|') on the ! " current line. ! let errpat = matchstr(getline('.'), '^\f*|\d\+ \(error\|warning\)|\ze') ! let errfile = matchstr(getline('.'), '^\f*\ze|\d\+ \(error\|warning\)|') " extract the line number from the error pattern. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(error\|warning\)|') *************** *** 296,311 **** endif ! exec 'bot pedit +/'.searchpat.'/ '.a:filename.'.log' " TODO: This is not robust enough. Check that a wincmd j actually takes ! " us to the preview window. Moreover, the resizing should be done only the ! " first time around. wincmd j if searchpat =~ 'l.\d\+' && numrep > 1 ! while numrep > 1 call search(searchpat, 'W') - normal! z. let numrep = numrep - 1 endwhile endif endfunction " }}} --- 307,331 ---- endif ! " We first need to be in the scope of the correct file in the .log file. ! " This is important for example, when a.tex and b.tex both have errors on ! " line 9 of the file and we want to go to the error of b.tex. Merely ! " searching forward from the beginning of the log file for l.9 will always ! " land us on the error in a.tex. ! if errfile != '' ! exec 'bot pedit +/(\(\f\|\[\|\]\)*'.errfile.'/ '.a:filename.'.log' ! else ! exec 'bot pedit +0 '.a:filename.'.log' ! endif ! " Goto the preview window " TODO: This is not robust enough. Check that a wincmd j actually takes ! " us to the preview window. wincmd j if searchpat =~ 'l.\d\+' && numrep > 1 ! while numrep > 0 call search(searchpat, 'W') let numrep = numrep - 1 endwhile endif + normal! z. endfunction " }}} *************** *** 320,325 **** function! UpdatePreviewWindow(filename) call PositionPreviewWindow(a:filename) ! 6 wincmd _ ! wincmd k endfunction " }}} " GotoErrorLocation: goes to the correct location of error in the tex file {{{ --- 340,348 ---- function! UpdatePreviewWindow(filename) call PositionPreviewWindow(a:filename) ! ! if &previewwindow ! 6 wincmd _ ! wincmd k ! endif endfunction " }}} " GotoErrorLocation: goes to the correct location of error in the tex file {{{ *************** *** 335,340 **** " TODO: When there are multiple errors on the same line, this only takes you " to the very first error every time. ! function! GotoErrorLocation(filename, winnum) let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(warning\|error\)|') call PositionPreviewWindow(a:filename) --- 358,372 ---- " TODO: When there are multiple errors on the same line, this only takes you " to the very first error every time. ! function! GotoErrorLocation(filename) + " first use vim's functionality to take us to the location of the error + " accurate to the line (not column). This lets us go to the correct file + " without applying any logic. + exec "normal! \<enter>" + let winnum = winnr() + " then come back to the quickfix window + wincmd w + + " find out where in the file we had the error. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(warning\|error\)|') call PositionPreviewWindow(a:filename) *************** *** 368,372 **** endif ! exec a:winnum.' wincmd w' exec 'silent! '.linenum.' | normal! '.normcmd --- 400,405 ---- endif ! " go back to the window where we came from. ! exec winnum.' wincmd w' exec 'silent! '.linenum.' | normal! '.normcmd |
From: <mi...@us...> - 2002-11-27 09:12:33
|
Update of /cvsroot/vim-latex/vimfiles/doc In directory sc8-pr-cvs1:/tmp/cvs-serv24501 Modified Files: latex-suite.txt Log Message: update doc about --src-specials and added Benji as maintainer in last section Index: latex-suite.txt =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/doc/latex-suite.txt,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** latex-suite.txt 6 Nov 2002 08:37:12 -0000 1.6 --- latex-suite.txt 27 Nov 2002 09:12:30 -0000 1.7 *************** *** 1,5 **** *latex-suite* Tools for an enhanced LaTeX environment in Vim For Vim version 6.0 and above. ! Last Change: Sat Nov 02 02:00 AM 2002 PST By Srinath Avadhanula <sr...@fa...>, --- 1,5 ---- *latex-suite* Tools for an enhanced LaTeX environment in Vim For Vim version 6.0 and above. ! Last Change: wto lis 26 10:00 2002 C By Srinath Avadhanula <sr...@fa...>, *************** *** 522,535 **** *latex-searching* ! Yap for windows and some versions of xdvi for windows provide the ability to ! do "forward searching" on the .dvi file. This means that you can have the DVI ! viewer jump to a specified location. Pressing \ls while viewing a LaTeX file will perform this function, i.e the viewer will jump to the location under the cursor. ! NOTE: MikTeX requires that the dvi file be generated using the --src-specials ! flag in order to enable forward/reverse searching. By default, latex-suite ! will call LaTeX with this argument on windows (where yap is assumed). These functions were added after a tip from Dimitri Antoniou on vim.sf.net. --- 522,535 ---- *latex-searching* ! Yap for windows, some versions of xdvi for windows and xdvi for unices provide ! the ability to do "forward searching" on the .dvi file. This means that you ! can have the DVI viewer jump to a specified location. Pressing \ls while viewing a LaTeX file will perform this function, i.e the viewer will jump to the location under the cursor. ! NOTE: MikTeX and xdvi require that the dvi file be generated using the ! --src-specials flag in order to enable forward/reverse searching. By default, ! latex-suite will call LaTeX with this argument. These functions were added after a tip from Dimitri Antoniou on vim.sf.net. *************** *** 952,955 **** --- 952,956 ---- Srinath Avadhanula <sr...@fa...> Mikolaj Machowski <mi...@wp...> + Benji Fisher <be...@me...> }}} |
From: <mi...@us...> - 2002-11-27 09:12:30
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv24498 Modified Files: texrc Log Message: make changes necessary for dvi searching , s:CompileFlags and pdf viewer Index: texrc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** texrc 20 Nov 2002 10:04:13 -0000 1.12 --- texrc 27 Nov 2002 09:12:27 -0000 1.13 *************** *** 4,8 **** " Author: Srinath Avadhanula " Created: Mon Apr 01 11:00 AM 2002 PST ! " Last Change: pon lis 18 11:00 2002 C " " Description: This file contains resource configuration information for the --- 4,8 ---- " Author: Srinath Avadhanula " Created: Mon Apr 01 11:00 AM 2002 PST ! " Last Change: wto lis 26 09:00 2002 C " " Description: This file contains resource configuration information for the *************** *** 79,83 **** TexLet g:Tex_EscapeChars = '' else ! let s:CompileFlags = '' TexLet g:Tex_EscapeChars = '{}\' endif --- 79,83 ---- TexLet g:Tex_EscapeChars = '' else ! let s:CompileFlags = '--src-specials' TexLet g:Tex_EscapeChars = '{}\' endif *************** *** 116,120 **** else TexLet g:Tex_ViewRule_ps = 'ghostview' ! TexLet g:Tex_ViewRule_pdf = 'acroread' TexLet g:Tex_ViewRule_dvi = 'xdvi' " the option below specifies an editor for the dvi viewer while starting --- 116,120 ---- else TexLet g:Tex_ViewRule_ps = 'ghostview' ! TexLet g:Tex_ViewRule_pdf = 'xpdf' TexLet g:Tex_ViewRule_dvi = 'xdvi' " the option below specifies an editor for the dvi viewer while starting |
From: <sri...@us...> - 2002-11-27 08:18:27
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv7807 Modified Files: compiler.vim Log Message: . goto the end of the current line before searching for the next error pattern. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** compiler.vim 27 Nov 2002 06:40:38 -0000 1.15 --- compiler.vim 27 Nov 2002 08:18:24 -0000 1.16 *************** *** 3,7 **** " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Tue Nov 26 10:00 PM 2002 PST " " Description: functions for compiling/viewing/searching latex documents --- 3,7 ---- " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Tue Nov 26 11:00 PM 2002 PST " " Description: functions for compiling/viewing/searching latex documents *************** *** 282,286 **** else " otherwise, search for the next line which contains the same ! " error pattern again. call search(errpat, 'W') endif --- 282,288 ---- else " otherwise, search for the next line which contains the same ! " error pattern again. goto the end of the current line so we ! " dont count this line again. ! normal! $ call search(errpat, 'W') endif |
From: <sri...@us...> - 2002-11-27 06:40:41
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv10978 Modified Files: compiler.vim Log Message: A number of bug fixes and code cleanup after the last hack job. Some important changes: 1. Sometimes searching in the quickfix window for other lines before current line containing an error on the same line would go into an infinite loop. 2. Sometimes, when the error occurs towards the end of a long line, we get something like this: l.10 ... and then there is a mistake. In this case, do not use the length of the broken line but use a search strategy. TODO: Use a search strategy even when error line is not of the above form. 3. set nowrap in quickfix window otherwise calculation width of the quickfix window is faulty. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** compiler.vim 21 Nov 2002 09:58:06 -0000 1.14 --- compiler.vim 27 Nov 2002 06:40:38 -0000 1.15 *************** *** 3,7 **** " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Thu Nov 21 12:00 AM 2002 PST " " Description: functions for compiling/viewing/searching latex documents --- 3,7 ---- " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Tue Nov 26 10:00 PM 2002 PST " " Description: functions for compiling/viewing/searching latex documents *************** *** 127,131 **** exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> <enter>:wincmd w<cr>:call GotoErrorLocation("'.mainfname.'", '.winnum.')<CR>' " resize the window to just fit in with the number of lines. --- 127,133 ---- exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> <enter>:call GotoErrorLocation("'.mainfname.'", '.winnum.')<CR>' ! ! setlocal nowrap " resize the window to just fit in with the number of lines. *************** *** 237,240 **** --- 239,247 ---- " PositionPreviewWindow: positions the preview window correctly. {{{ " Description: + " The purpose of this function is to count the number of times an error + " occurs on the same line. or in other words, if the current line is + " something like |10 error|, then we want to count the number of + " lines in the quickfix window before this line which also contain lines + " like |10 error|. function! PositionPreviewWindow(filename) *************** *** 246,267 **** endif let errpat = matchstr(getline('.'), '\zs|\d\+ \(error\|warning\)|\ze') let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(error\|warning\)|') ! let errline = line('.') ! 0 ! let numrep = 0 ! while 1 ! if getline('.') =~ errpat ! let numrep = numrep + 1 ! normal! 0 ! call search('|\d\+ \(warning\|error\)|') ! endif ! if line('.') == errline ! break ! else ! call search(errpat, 'W') ! endif ! endwhile if getline('.') =~ '|\d\+ warning|' --- 253,290 ---- endif + " extract the error pattern (something like '|10 error|') on the current + " line. let errpat = matchstr(getline('.'), '\zs|\d\+ \(error\|warning\)|\ze') + " extract the line number from the error pattern. let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(error\|warning\)|') ! " if we are on an error, then count the number of lines before this in the ! " quickfix window with an error on the same line. ! if errpat =~ 'error' ! " our location in the quick fix window. ! let errline = line('.') ! ! " goto the beginning of the quickfix window and begin counting the lines ! " which show an error on the same line. ! 0 ! let numrep = 0 ! while 1 ! " if we are on the same kind of error line, then means we have another ! " line containing the same error pattern. ! if getline('.') =~ errpat ! let numrep = numrep + 1 ! normal! 0 ! endif ! " if we have reached the original location in the quick fix window, ! " then break. ! if line('.') == errline ! break ! else ! " otherwise, search for the next line which contains the same ! " error pattern again. ! call search(errpat, 'W') ! endif ! endwhile ! endif if getline('.') =~ '|\d\+ warning|' *************** *** 318,327 **** let brokenline = matchstr(getline('.'), 'l.'.linenum.' \zs.*\ze') ! let column = strlen(brokenline) ! let normcmd = column.'|' ! elseif getline('.') =~ 'LaTeX Warning: Citation `.*' ! let ref = matchstr(getline('.'), "LaTeX Warning: Citation `\\zs[^']\\+\\ze'") let normcmd = '0/'.ref."\<CR>" --- 341,361 ---- let brokenline = matchstr(getline('.'), 'l.'.linenum.' \zs.*\ze') ! " If the line is of the form ! " l.10 ...and then there was some error ! " it means (most probably) that only part of the erroneous line is ! " shown. In this case, finding the length of the broken line is not ! " correct. Instead goto the beginning of the line and search forward ! " for the part which is displayed and then go to its end. ! if brokenline =~ '^\M...' ! let partline = matchstr(brokenline, '^\M...\m\zs.*') ! let normcmd = "0/\\V".escape(partline, "\\")."/e+1\<CR>" ! else ! let column = strlen(brokenline) ! let normcmd = column.'|' ! endif ! elseif getline('.') =~ 'LaTeX Warning: \(Citation\|Reference\) `.*' ! let ref = matchstr(getline('.'), "LaTeX Warning: \\(Citation\\|Reference\\) `\\zs[^']\\+\\ze'") let normcmd = '0/'.ref."\<CR>" |
From: <mi...@us...> - 2002-11-25 23:00:30
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv21980 Modified Files: amsmath bar changebar chapterbib cite drftcite geometry harpoon hhline hyperref inputenc lineno longtable manyfoot multicol overcite ulem Log Message: optimized versions of package files ("") Index: amsmath =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/amsmath,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** amsmath 9 Nov 2002 22:52:42 -0000 1.1 --- amsmath 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,98 **** let g:TeX_package_option_amsmath = ! \ "centertags," ! \."tbtags," ! \."sumlimits," ! \."nosumlimits," ! \."intlimits," ! \."nointlimits," ! \."namelimits," ! \."nonamelimits," ! \."leqno," ! \."reqno," ! \."fleqno" let g:TeX_package_amsmath = ! \ "sbr:Environments," ! \."env:equation," ! \."env:equation*," ! \."env:align," ! \."env:align*," ! \."env:gather," ! \."env:gather*," ! \."env:flalign," ! \."env:flalign*," ! \."env:multline," ! \."env:multline*," ! \."env:alignat," ! \."env:alignat*," ! \."env:subequations," ! \."env:subarray," ! \."env:split," ! \."env:cases," ! \."sbr:Matrices," ! \."env:matrix," ! \."env:pmatrix," ! \."env:bmatrix," ! \."env:Bmatrix," ! \."env:vmatrix," ! \."env:Vmatrix," ! \."env:smallmatrix," ! \."bra:hdotsfor," ! \."sbr:Dots," ! \."dotsc," ! \."dotsb," ! \."dotsm," ! \."dotsi," ! \."dotso," ! \."sbr:ItalicGreek," ! \."nor:varGamma," ! \."nor:varDelta," ! \."nor:varTheta," ! \."nor:varLambda," ! \."nor:varXi," ! \."nor:varPi," ! \."nor:varSigma," ! \."nor:varUpsilon," ! \."nor:varPhi," ! \."nor:varPsi," ! \."nor:varOmega," ! \."sbr:Mod," ! \."nor:mod," ! \."nor:bmod," ! \."nor:pmod," ! \."nor:pod," ! \."sbr:CreatingSymbols," ! \."brd:overset," ! \."brd:underset," ! \."brd:sideset," ! \."sbr:Fractions," ! \."brd:frac," ! \."brd:dfrac," ! \."brd:tfrac," ! \."brd:cfrac," ! \."brd:binom," ! \."brd:dbinom," ! \."brd:tbinom," ! \."brs:genfrac{«ldelim»}{«rdelim»}{«thick»}{«style»}{«numer»}{«denom»}«»," ! \."sbr:Commands," ! \."nob:smash," ! \."bra:substack," ! \."bra:tag," ! \."bra:tag*," ! \."nor:notag," ! \."bra:raisetag," ! \."bra:shoveleft," ! \."bra:shoveright," ! \."bra:intertext," ! \."bra:text," ! \."nor:displaybreak," ! \."noo:displaybreak," ! \."noo:allowdisplaybreaks," ! \."nor:nobreakdash," ! \."brs:numberwithin," ! \."bra:leftroot," ! \."bra:uproot," ! \."bra:boxed," ! \."brs:DeclareMathSymbol{«»}{«»}{«»}{«»}«»," ! \."bra:eqref" " vim:ft=vim --- 1,98 ---- let g:TeX_package_option_amsmath = ! \ 'centertags,' ! \.'tbtags,' ! \.'sumlimits,' ! \.'nosumlimits,' ! \.'intlimits,' ! \.'nointlimits,' ! \.'namelimits,' ! \.'nonamelimits,' ! \.'leqno,' ! \.'reqno,' ! \.'fleqno' let g:TeX_package_amsmath = ! \ 'sbr:Environments,' ! \.'env:equation,' ! \.'env:equation*,' ! \.'env:align,' ! \.'env:align*,' ! \.'env:gather,' ! \.'env:gather*,' ! \.'env:flalign,' ! \.'env:flalign*,' ! \.'env:multline,' ! \.'env:multline*,' ! \.'env:alignat,' ! \.'env:alignat*,' ! \.'env:subequations,' ! \.'env:subarray,' ! \.'env:split,' ! \.'env:cases,' ! \.'sbr:Matrices,' ! \.'env:matrix,' ! \.'env:pmatrix,' ! \.'env:bmatrix,' ! \.'env:Bmatrix,' ! \.'env:vmatrix,' ! \.'env:Vmatrix,' ! \.'env:smallmatrix,' ! \.'bra:hdotsfor,' ! \.'sbr:Dots,' ! \.'dotsc,' ! \.'dotsb,' ! \.'dotsm,' ! \.'dotsi,' ! \.'dotso,' ! \.'sbr:ItalicGreek,' ! \.'nor:varGamma,' ! \.'nor:varDelta,' ! \.'nor:varTheta,' ! \.'nor:varLambda,' ! \.'nor:varXi,' ! \.'nor:varPi,' ! \.'nor:varSigma,' ! \.'nor:varUpsilon,' ! \.'nor:varPhi,' ! \.'nor:varPsi,' ! \.'nor:varOmega,' ! \.'sbr:Mod,' ! \.'nor:mod,' ! \.'nor:bmod,' ! \.'nor:pmod,' ! \.'nor:pod,' ! \.'sbr:CreatingSymbols,' ! \.'brd:overset,' ! \.'brd:underset,' ! \.'brd:sideset,' ! \.'sbr:Fractions,' ! \.'brd:frac,' ! \.'brd:dfrac,' ! \.'brd:tfrac,' ! \.'brd:cfrac,' ! \.'brd:binom,' ! \.'brd:dbinom,' ! \.'brd:tbinom,' ! \.'brs:genfrac{«ldelim»}{«rdelim»}{«thick»}{«style»}{«numer»}{«denom»}«»,' ! \.'sbr:Commands,' ! \.'nob:smash,' ! \.'bra:substack,' ! \.'bra:tag,' ! \.'bra:tag*,' ! \.'nor:notag,' ! \.'bra:raisetag,' ! \.'bra:shoveleft,' ! \.'bra:shoveright,' ! \.'bra:intertext,' ! \.'bra:text,' ! \.'nor:displaybreak,' ! \.'noo:displaybreak,' ! \.'noo:allowdisplaybreaks,' ! \.'nor:nobreakdash,' ! \.'brs:numberwithin,' ! \.'bra:leftroot,' ! \.'bra:uproot,' ! \.'bra:boxed,' ! \.'brs:DeclareMathSymbol{«»}{«»}{«»}{«»}«»,' ! \.'bra:eqref' " vim:ft=vim Index: bar =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/bar,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bar 3 May 2002 22:51:01 -0000 1.1 --- bar 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,19 **** ! let g:TeX_package_option_bar = "" let g:TeX_package_bar = ! \ "env:barenv," ! \."brs:bar{«height»}{«index»}[«desc»]," ! \."hlineon," ! \."brs:legend{«index»}{«text»}," ! \."bra:setdepth," ! \."bra:sethspace," ! \."brs:setlinestyle{«solid-dotted»}," ! \."brs:setnumberpos{«empty-axis-down-inside-outside-up»}," ! \."bra:setprecision," ! \."bra:setstretch," ! \."bra:setstyle," ! \."bra:setwidth," ! \."brs:setxaxis{«w1»}{«w2»}{«step»}," ! \."brs:setyaxis[«n»]{«w1»}{«w2»}{«step»}," ! \."brs:setxname[«lrbt»]{«etiquette»}," ! \."brs:setyname[«lrbt»]{«etiquette»}," ! \."brs:setxvaluetyp{«day-month»}" --- 1,19 ---- ! let g:TeX_package_option_bar = '' let g:TeX_package_bar = ! \ 'env:barenv,' ! \.'brs:bar{«height»}{«index»}[«desc»],' ! \.'hlineon,' ! \.'brs:legend{«index»}{«text»},' ! \.'bra:setdepth,' ! \.'bra:sethspace,' ! \.'brs:setlinestyle{«solid-dotted»},' ! \.'brs:setnumberpos{«empty-axis-down-inside-outside-up»},' ! \.'bra:setprecision,' ! \.'bra:setstretch,' ! \.'bra:setstyle,' ! \.'bra:setwidth,' ! \.'brs:setxaxis{«w1»}{«w2»}{«step»},' ! \.'brs:setyaxis[«n»]{«w1»}{«w2»}{«step»},' ! \.'brs:setxname[«lrbt»]{«etiquette»},' ! \.'brs:setyname[«lrbt»]{«etiquette»},' ! \.'brs:setxvaluetyp{«day-month»}' Index: changebar =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/changebar,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** changebar 3 May 2002 22:51:01 -0000 1.1 --- changebar 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,28 **** let g:TeX_package_option_changebar = ! \ "DVItoLN03," ! \."dvitoln03," ! \."DVItoPS," ! \."dvitops," ! \."DVIps," ! \."dvips," ! \."emTeX," ! \."emtex," ! \."textures," ! \."Textures," ! \."outerbars," ! \."innerbars," ! \."leftbars," ! \."rightbars," ! \."traceon," ! \."traceoff" let g:TeX_package_changebar = ! \ "ens:changebar:[«thickness»]," ! \."noo:cbstart," ! \."cbend," ! \."cbdelete," ! \."changebarwidth," ! \."deletebarwidth," ! \."changebarsep," ! \."spe:changebargrey," ! \."nochangebars" --- 1,28 ---- let g:TeX_package_option_changebar = ! \ 'DVItoLN03,' ! \.'dvitoln03,' ! \.'DVItoPS,' ! \.'dvitops,' ! \.'DVIps,' ! \.'dvips,' ! \.'emTeX,' ! \.'emtex,' ! \.'textures,' ! \.'Textures,' ! \.'outerbars,' ! \.'innerbars,' ! \.'leftbars,' ! \.'rightbars,' ! \.'traceon,' ! \.'traceoff' let g:TeX_package_changebar = ! \ 'ens:changebar:[«thickness»],' ! \.'noo:cbstart,' ! \.'cbend,' ! \.'cbdelete,' ! \.'changebarwidth,' ! \.'deletebarwidth,' ! \.'changebarsep,' ! \.'spe:changebargrey,' ! \.'nochangebars' Index: chapterbib =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/chapterbib,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** chapterbib 10 Nov 2002 22:12:28 -0000 1.1 --- chapterbib 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,18 **** let g:TeX_package_option_chapterbib = ! \ "sectionbib," ! \."rootbib," ! \."gather," ! \."duplicate" let g:TeX_package_chapterbib = ! \ "env:cbunit," ! \."brd:sectionbib," ! \."bra:cbinput," ! \."sep:redefine," ! \."bra:citeform," ! \."bra:citepunct," ! \."bra:citeleft," ! \."bra:citeright," ! \."bra:citemid," ! \."bra:citedash" --- 1,18 ---- let g:TeX_package_option_chapterbib = ! \ 'sectionbib,' ! \.'rootbib,' ! \.'gather,' ! \.'duplicate' let g:TeX_package_chapterbib = ! \ 'env:cbunit,' ! \.'brd:sectionbib,' ! \.'bra:cbinput,' ! \.'sep:redefine,' ! \.'bra:citeform,' ! \.'bra:citepunct,' ! \.'bra:citeleft,' ! \.'bra:citeright,' ! \.'bra:citemid,' ! \.'bra:citedash' Index: cite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/cite,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cite 10 Nov 2002 22:11:49 -0000 1.2 --- cite 25 Nov 2002 23:00:25 -0000 1.3 *************** *** 1,22 **** let g:TeX_package_option_cite = ! \ "verbose," ! \."nospace," ! \."space," ! \."nosort," ! \."sort," ! \."noadjust" let g:TeX_package_cite = ! \ "bra:cite," ! \."bra:citen," ! \."bra:citenum," ! \."bra:citeonline," ! \."bra:nocite," ! \."sep:redefine," ! \."bra:citeform," ! \."bra:citepunct," ! \."bra:citeleft," ! \."bra:citeright," ! \."bra:citemid," ! \."bra:citedash" --- 1,22 ---- let g:TeX_package_option_cite = ! \ 'verbose,' ! \.'nospace,' ! \.'space,' ! \.'nosort,' ! \.'sort,' ! \.'noadjust' let g:TeX_package_cite = ! \ 'bra:cite,' ! \.'bra:citen,' ! \.'bra:citenum,' ! \.'bra:citeonline,' ! \.'bra:nocite,' ! \.'sep:redefine,' ! \.'bra:citeform,' ! \.'bra:citepunct,' ! \.'bra:citeleft,' ! \.'bra:citeright,' ! \.'bra:citemid,' ! \.'bra:citedash' Index: drftcite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/drftcite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** drftcite 10 Nov 2002 22:12:28 -0000 1.1 --- drftcite 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,21 **** let g:TeX_package_option_cite = ! \ "verbose," ! \."nospace," ! \."space," ! \."breakcites," ! \."manualsort," ! \."tt," ! \."shownumbers," ! \."nocitecount" let g:TeX_package_cite = ! \ "bra:cite," ! \."bra:citen," ! \."sep:redefine," ! \."bra:citeform," ! \."bra:citepunct," ! \."bra:citeleft," ! \."bra:citeright," ! \."bra:citemid," ! \."bra:citedash" --- 1,21 ---- let g:TeX_package_option_cite = ! \ 'verbose,' ! \.'nospace,' ! \.'space,' ! \.'breakcites,' ! \.'manualsort,' ! \.'tt,' ! \.'shownumbers,' ! \.'nocitecount' let g:TeX_package_cite = ! \ 'bra:cite,' ! \.'bra:citen,' ! \.'sep:redefine,' ! \.'bra:citeform,' ! \.'bra:citepunct,' ! \.'bra:citeleft,' ! \.'bra:citeright,' ! \.'bra:citemid,' ! \.'bra:citedash' Index: geometry =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/geometry,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** geometry 30 Apr 2002 00:03:23 -0000 1.1.1.1 --- geometry 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,87 **** let g:TeX_package_option_geometry = ! \ "sbr:Boolean," ! \."verbose," ! \."landscape," ! \."portrait," ! \."twoside," ! \."includemp," ! \."reversemp," ! \."reversemarginpar," ! \."nohead," ! \."nofoot," ! \."noheadfoot," ! \."dvips," ! \."pdftex," ! \."vtex," ! \."truedimen," ! \."reset," ! \."sbr:BooleanDimensions," ! \."a0paper," ! \."a1paper," ! \."a2paper," ! \."a3paper," ! \."a4paper," ! \."a5paper," ! \."a6paper," ! \."b0paper," ! \."b1paper," ! \."b2paper," ! \."b3paper," ! \."b4paper," ! \."b5paper," ! \."b6paper," ! \."letterpaper," ! \."executivepaper," ! \."legalpaper," ! \."sbr:SingleValueOption," ! \."paper=," ! \."papername=," ! \."paperwidth=," ! \."paperheight=," ! \."width=," ! \."totalwidth=," ! \."height=," ! \."totalheight=," ! \."left=," ! \."lmargin=," ! \."right=," ! \."rmargin=," ! \."top=," ! \."tmargin=," ! \."bottom=," ! \."bmargin=," ! \."hscale=," ! \."vscale=," ! \."textwidth=," ! \."textheight=," ! \."marginparwidth=," ! \."marginpar=," ! \."marginparsep=," ! \."headheight=," ! \."head=," ! \."headsep=," ! \."footskip=," ! \."hoffset=," ! \."voffset=," ! \."twosideshift=," ! \."mag=," ! \."columnsep=," ! \."footnotesep=," ! \."sbr:TwoValueOptions," ! \."papersize={ä}," ! \."total={ä}," ! \."body={ä}," ! \."text={ä}," ! \."scale={ä}," ! \."hmargin={ä}," ! \."vmargin={ä}," ! \."margin={ä}," ! \."offset={ä}," ! \."sbr:ThreeValueOptions," ! \."hdivide={ä}," ! \."vdivide={ä}," ! \."divide={ä}" let g:TeX_package_geometry = ! \ "bra:geometry" " vim:ft=vim --- 1,87 ---- let g:TeX_package_option_geometry = ! \ 'sbr:Boolean,' ! \.'verbose,' ! \.'landscape,' ! \.'portrait,' ! \.'twoside,' ! \.'includemp,' ! \.'reversemp,' ! \.'reversemarginpar,' ! \.'nohead,' ! \.'nofoot,' ! \.'noheadfoot,' ! \.'dvips,' ! \.'pdftex,' ! \.'vtex,' ! \.'truedimen,' ! \.'reset,' ! \.'sbr:BooleanDimensions,' ! \.'a0paper,' ! \.'a1paper,' ! \.'a2paper,' ! \.'a3paper,' ! \.'a4paper,' ! \.'a5paper,' ! \.'a6paper,' ! \.'b0paper,' ! \.'b1paper,' ! \.'b2paper,' ! \.'b3paper,' ! \.'b4paper,' ! \.'b5paper,' ! \.'b6paper,' ! \.'letterpaper,' ! \.'executivepaper,' ! \.'legalpaper,' ! \.'sbr:SingleValueOption,' ! \.'paper=,' ! \.'papername=,' ! \.'paperwidth=,' ! \.'paperheight=,' ! \.'width=,' ! \.'totalwidth=,' ! \.'height=,' ! \.'totalheight=,' ! \.'left=,' ! \.'lmargin=,' ! \.'right=,' ! \.'rmargin=,' ! \.'top=,' ! \.'tmargin=,' ! \.'bottom=,' ! \.'bmargin=,' ! \.'hscale=,' ! \.'vscale=,' ! \.'textwidth=,' ! \.'textheight=,' ! \.'marginparwidth=,' ! \.'marginpar=,' ! \.'marginparsep=,' ! \.'headheight=,' ! \.'head=,' ! \.'headsep=,' ! \.'footskip=,' ! \.'hoffset=,' ! \.'voffset=,' ! \.'twosideshift=,' ! \.'mag=,' ! \.'columnsep=,' ! \.'footnotesep=,' ! \.'sbr:TwoValueOptions,' ! \.'papersize={ä},' ! \.'total={ä},' ! \.'body={ä},' ! \.'text={ä},' ! \.'scale={ä},' ! \.'hmargin={ä},' ! \.'vmargin={ä},' ! \.'margin={ä},' ! \.'offset={ä},' ! \.'sbr:ThreeValueOptions,' ! \.'hdivide={ä},' ! \.'vdivide={ä},' ! \.'divide={ä}' let g:TeX_package_geometry = ! \ 'bra:geometry' " vim:ft=vim Index: harpoon =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/harpoon,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** harpoon 3 May 2002 22:51:01 -0000 1.1 --- harpoon 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,10 **** ! let g:TeX_package_option_harpoon = "" let g:TeX_package_harpoon = ! \ "bra:overleftharp," ! \."bra:overrightharp," ! \."bra:overleftharpdown," ! \."bra:overrightharpdown," ! \."bra:underleftharp," ! \."bra:underrightharp," ! \."bra:underleftharpdown," ! \."bra:underrightharpdown" --- 1,10 ---- ! let g:TeX_package_option_harpoon = '' let g:TeX_package_harpoon = ! \ 'bra:overleftharp,' ! \.'bra:overrightharp,' ! \.'bra:overleftharpdown,' ! \.'bra:overrightharpdown,' ! \.'bra:underleftharp,' ! \.'bra:underrightharp,' ! \.'bra:underleftharpdown,' ! \.'bra:underrightharpdown' Index: hhline =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/hhline,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hhline 3 May 2002 22:51:01 -0000 1.1 --- hhline 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 1,13 **** ! let g:TeX_package_option_hhline = "" let g:TeX_package_hhline = ! \ "bra:hhline," ! \."sep:a," ! \."spe:=," ! \."spe:-," ! \."spe:~," \."spe:\\\|," ! \."spe::," ! \."spe:#," ! \."spe:t," ! \."spe:b," ! \."spe:*" --- 1,13 ---- ! let g:TeX_package_option_hhline = '' let g:TeX_package_hhline = ! \ 'bra:hhline,' ! \.'sep:a,' ! \.'spe:=,' ! \.'spe:-,' ! \.'spe:~,' \."spe:\\\|," ! \.'spe::,' ! \.'spe:#,' ! \.'spe:t,' ! \.'spe:b,' ! \.'spe:*' Index: hyperref =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/hyperref,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** hyperref 30 Apr 2002 00:03:23 -0000 1.1.1.1 --- hyperref 25 Nov 2002 23:00:25 -0000 1.2 *************** *** 3,163 **** let g:TeX_package_option_hyperref = ! \ "4=," ! \."a4paper," ! \."a5paper," ! \."anchorcolor=," ! \."b5paper," ! \."backref=," ! \."baseurl={ä}," ! \."bookmarks=," ! \."bookmarksnumbered=," ! \."bookmarksopen=," ! \."bookmarksopenlevel=," ! \."bookmarkstype=," ! \."breaklinks=," ! \."citebordercolor=," ! \."citecolor=," ! \."colorlinks=," ! \."debug=," ! \."draft," ! \."dvipdf," ! \."dvipdfm," ! \."dvips," ! \."dvipsone," ! \."dviwindo," ! \."executivepaper," ! \."extension=," ! \."filebordercolor=," ! \."filecolor=," ! \."frenchlinks=," ! \."hyperfigures=," ! \."hyperindex=," ! \."hypertex," ! \."hypertexnames=," ! \."implicit=," ! \."latex2html," ! \."legalpaper," ! \."letterpaper," ! \."linkbordercolor=," ! \."linkcolor=," ! \."linktocpage=," ! \."menubordercolor=," ! \."menucolor=," ! \."naturalnames," ! \."nesting=," ! \."pageanchor=," ! \."pagebackref=," ! \."pagebordercolor=," ! \."pagecolor=," ! \."pdfauthor={ä}," ! \."pdfborder=," ! \."pdfcenterwindow=," ! \."pdfcreator={ä}," ! \."pdffitwindow," ! \."pdfhighlight=," ! \."pdfkeywords={ä}," ! \."pdfmenubar=," ! \."pdfnewwindow=," ! \."pdfpagelabels=," ! \."pdfpagelayout=," ! \."pdfpagemode=," ! \."pdfpagescrop=," ! \."pdfpagetransition=," ! \."pdfproducer={ä}," ! \."pdfstartpage={ä}," ! \."pdfstartview={ä}," ! \."pdfsubject={ä}," ! \."pdftex," ! \."pdftitle={ä}," ! \."pdftoolbar=," ! \."pdfusetitle=," ! \."pdfview," ! \."pdfwindowui=," ! \."plainpages=," ! \."ps2pdf," ! \."raiselinks=," ! \."runbordercolor," ! \."tex4ht," ! \."textures," ! \."unicode=," ! \."urlbordercolor=," ! \."urlcolor=," ! \."verbose=," ! \."vtex" let g:TeX_package_hyperref = ! \ "sbr:Preamble," ! \."bra:hypersetup," ! \."wwwbrowser," ! \."sbr:Links," ! \."bra:hyperbaseurl," ! \."brs:href{«URL»}{«text»}," ! \."bra:hyperimage," ! \."brs:hyperdef{«category»}{«name»}{«text»}," ! \."brs:hyperref{«URL»}{«category»}{«name»}{«text»}," ! \."brs:hyperlink{«name»}{«text»}," ! \."brs:hypertarget{«name»}{«text»}," ! \."bra:url," ! \."bra:htmladdnormallink," ! \."brs:Acrobatmenu{«option»}{«tekst»}," ! \."brs:pdfbookmark[ä]{«»}{«»}," ! \."bra:thispdfpagelabel," ! \."sbr:Forms," ! \."env:Form," ! \."sep:Forms1," ! \."brs:TextField[«parameters»]{«label»}," ! \."brs:CheckBox[«parameters»]{«label»}," ! \."brs:ChoiceMenu[«parameters»]{«label»}{«choices»}," ! \."brs:PushButton[«parameters»]{«label»}," ! \."brs:Submit[«parameters»]{«label»}," ! \."brs:Reset[«parameters»]{«label»}," ! \."sep:Forms2," ! \."brs:LayoutTextField{«label»}{«field»}," ! \."brs:LayoutChoiceField{«label»}{«field»}," ! \."brs:LayoutCheckboxField{«label»}{«field»}," ! \."sep:Forms3," ! \."brs:MakeRadioField{«width»}{«height»}," ! \."brs:MakeCheckField{«width»}{«height»}," ! \."brs:MakeTextField{«width»}{«height»}," ! \."brs:MakeChoiceField{«width»}{«height»}," ! \."brs:MakeButtonField{«text»}," ! \."sbr:Parameters," ! \."spe:accesskey," ! \."spe:align," ! \."spe:backgroundcolor," ! \."spe:bordercolor," ! \."spe:bordersep," ! \."spe:borderwidth," ! \."spe:charsize," ! \."spe:checked," ! \."spe:color," ! \."spe:combo," ! \."spe:default," ! \."spe:disabled," ! \."spe:height," ! \."spe:hidden," ! \."spe:maxlen," ! \."spe:menulength," ! \."spe:multiline," ! \."spe:name," ! \."spe:onblur," ! \."spe:onchange," ! \."spe:onclick," ! \."spe:ondblclick," ! \."spe:onfocus," ! \."spe:onkeydown," ! \."spe:onkeypress," ! \."spe:onkeyup," ! \."spe:onmousedown," ! \."spe:onmousemove," ! \."spe:onmouseout," ! \."spe:onmouseover," ! \."spe:onmouseup," ! \."spe:onselect," ! \."spe:password," ! \."spe:popdown," ! \."spe:radio," ! \."spe:readonly," ! \."spe:tabkey," ! \."spe:value," ! \."spe:width" --- 3,163 ---- let g:TeX_package_option_hyperref = ! \ '4=,' ! \.'a4paper,' ! \.'a5paper,' ! \.'anchorcolor=,' ! \.'b5paper,' ! \.'backref=,' ! \.'baseurl={ä},' ! \.'bookmarks=,' ! \.'bookmarksnumbered=,' ! \.'bookmarksopen=,' ! \.'bookmarksopenlevel=,' ! \.'bookmarkstype=,' ! \.'breaklinks=,' ! \.'citebordercolor=,' ! \.'citecolor=,' ! \.'colorlinks=,' ! \.'debug=,' ! \.'draft,' ! \.'dvipdf,' ! \.'dvipdfm,' ! \.'dvips,' ! \.'dvipsone,' ! \.'dviwindo,' ! \.'executivepaper,' ! \.'extension=,' ! \.'filebordercolor=,' ! \.'filecolor=,' ! \.'frenchlinks=,' ! \.'hyperfigures=,' ! \.'hyperindex=,' ! \.'hypertex,' ! \.'hypertexnames=,' ! \.'implicit=,' ! \.'latex2html,' ! \.'legalpaper,' ! \.'letterpaper,' ! \.'linkbordercolor=,' ! \.'linkcolor=,' ! \.'linktocpage=,' ! \.'menubordercolor=,' ! \.'menucolor=,' ! \.'naturalnames,' ! \.'nesting=,' ! \.'pageanchor=,' ! \.'pagebackref=,' ! \.'pagebordercolor=,' ! \.'pagecolor=,' ! \.'pdfauthor={ä},' ! \.'pdfborder=,' ! \.'pdfcenterwindow=,' ! \.'pdfcreator={ä},' ! \.'pdffitwindow,' ! \.'pdfhighlight=,' ! \.'pdfkeywords={ä},' ! \.'pdfmenubar=,' ! \.'pdfnewwindow=,' ! \.'pdfpagelabels=,' ! \.'pdfpagelayout=,' ! \.'pdfpagemode=,' ! \.'pdfpagescrop=,' ! \.'pdfpagetransition=,' ! \.'pdfproducer={ä},' ! \.'pdfstartpage={ä},' ! \.'pdfstartview={ä},' ! \.'pdfsubject={ä},' ! \.'pdftex,' ! \.'pdftitle={ä},' ! \.'pdftoolbar=,' ! \.'pdfusetitle=,' ! \.'pdfview,' ! \.'pdfwindowui=,' ! \.'plainpages=,' ! \.'ps2pdf,' ! \.'raiselinks=,' ! \.'runbordercolor,' ! \.'tex4ht,' ! \.'textures,' ! \.'unicode=,' ! \.'urlbordercolor=,' ! \.'urlcolor=,' ! \.'verbose=,' ! \.'vtex' let g:TeX_package_hyperref = ! \ 'sbr:Preamble,' ! \.'bra:hypersetup,' ! \.'wwwbrowser,' ! \.'sbr:Links,' ! \.'bra:hyperbaseurl,' ! \.'brs:href{«URL»}{«text»},' ! \.'bra:hyperimage,' ! \.'brs:hyperdef{«category»}{«name»}{«text»},' ! \.'brs:hyperref{«URL»}{«category»}{«name»}{«text»},' ! \.'brs:hyperlink{«name»}{«text»},' ! \.'brs:hypertarget{«name»}{«text»},' ! \.'bra:url,' ! \.'bra:htmladdnormallink,' ! \.'brs:Acrobatmenu{«option»}{«tekst»},' ! \.'brs:pdfbookmark[ä]{«»}{«»},' ! \.'bra:thispdfpagelabel,' ! \.'sbr:Forms,' ! \.'env:Form,' ! \.'sep:Forms1,' ! \.'brs:TextField[«parameters»]{«label»},' ! \.'brs:CheckBox[«parameters»]{«label»},' ! \.'brs:ChoiceMenu[«parameters»]{«label»}{«choices»},' ! \.'brs:PushButton[«parameters»]{«label»},' ! \.'brs:Submit[«parameters»]{«label»},' ! \.'brs:Reset[«parameters»]{«label»},' ! \.'sep:Forms2,' ! \.'brs:LayoutTextField{«label»}{«field»},' ! \.'brs:LayoutChoiceField{«label»}{«field»},' ! \.'brs:LayoutCheckboxField{«label»}{«field»},' ! \.'sep:Forms3,' ! \.'brs:MakeRadioField{«width»}{«height»},' ! \.'brs:MakeCheckField{«width»}{«height»},' ! \.'brs:MakeTextField{«width»}{«height»},' ! \.'brs:MakeChoiceField{«width»}{«height»},' ! \.'brs:MakeButtonField{«text»},' ! \.'sbr:Parameters,' ! \.'spe:accesskey,' ! \.'spe:align,' ! \.'spe:backgroundcolor,' ! \.'spe:bordercolor,' ! \.'spe:bordersep,' ! \.'spe:borderwidth,' ! \.'spe:charsize,' ! \.'spe:checked,' ! \.'spe:color,' ! \.'spe:combo,' ! \.'spe:default,' ! \.'spe:disabled,' ! \.'spe:height,' ! \.'spe:hidden,' ! \.'spe:maxlen,' ! \.'spe:menulength,' ! \.'spe:multiline,' ! \.'spe:name,' ! \.'spe:onblur,' ! \.'spe:onchange,' ! \.'spe:onclick,' ! \.'spe:ondblclick,' ! \.'spe:onfocus,' ! \.'spe:onkeydown,' ! \.'spe:onkeypress,' ! \.'spe:onkeyup,' ! \.'spe:onmousedown,' ! \.'spe:onmousemove,' ! \.'spe:onmouseout,' ! \.'spe:onmouseover,' ! \.'spe:onmouseup,' ! \.'spe:onselect,' ! \.'spe:password,' ! \.'spe:popdown,' ! \.'spe:radio,' ! \.'spe:readonly,' ! \.'spe:tabkey,' ! \.'spe:value,' ! \.'spe:width' Index: inputenc =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/inputenc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** inputenc 10 Nov 2002 22:12:28 -0000 1.1 --- inputenc 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,22 **** let g:TeX_package_option_inputenc = ! \ "ascii," ! \."latin1," ! \."latin2," ! \."latin3," ! \."latin4," ! \."latin5," ! \."latin9," ! \."decmulti," ! \."cp850," ! \."cp852," ! \."cp437," ! \."cp437de," ! \."cp865," ! \."applemac," ! \."next," ! \."ansinew," ! \."cp1250," ! \."cp1252" let g:TeX_package_inputenc = ! \ "bra:inputencoding" --- 1,22 ---- let g:TeX_package_option_inputenc = ! \ 'ascii,' ! \.'latin1,' ! \.'latin2,' ! \.'latin3,' ! \.'latin4,' ! \.'latin5,' ! \.'latin9,' ! \.'decmulti,' ! \.'cp850,' ! \.'cp852,' ! \.'cp437,' ! \.'cp437de,' ! \.'cp865,' ! \.'applemac,' ! \.'next,' ! \.'ansinew,' ! \.'cp1250,' ! \.'cp1252' let g:TeX_package_inputenc = ! \ 'bra:inputencoding' Index: lineno =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/lineno,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** lineno 30 Apr 2002 00:03:23 -0000 1.1.1.1 --- lineno 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,55 **** let g:TeX_package_option_lineno = ! \ "left," ! \."right," ! \."switch," ! \."switch*," ! \."pagewise," ! \."running," ! \."modulo," ! \."mathlines," ! \."displaymath," ! \."hyperref" let g:TeX_package_lineno = ! \ "sbr:Environments," ! \."env:linenumbers," ! \."env:linenumbers*," ! \."env:numquote," ! \."env:numquote*," ! \."env:numquotation," ! \."env:numquotation*," ! \."env:bframe," ! \."env:linenomath," ! \."env:linenomath*," ! \."bra:linelabel," ! \."sbr:Commands," ! \."nor:linenumbers," ! \."nor:linenumbers*," ! \."noo:linenumbers," ! \."nor:nolinenumbers," ! \."nor:runninglinenumbers," ! \."nor:runninglinenumbers*," ! \."noo:runninglinenumbers," ! \."nor:pagewiselinenumbers," ! \."nor:resetlinenumber," ! \."noo:resetlinenumber," ! \."nor:setrunninglinenumbers," ! \."nor:setpagewiselinenumbers," ! \."nor:switchlinenumbers," ! \."nor:switchlinenumbers*," ! \."nor:leftlinenumbers," ! \."nor:leftlinenumbers*," ! \."nor:rightlinenumbers," ! \."nor:rightlinenumbers*," ! \."nor:runningpagewiselinenumbers," ! \."nor:realpagewiselinenumbers," ! \."nor:modulolinenumbers," ! \."noo:modulolinenumbers," ! \."nor:linenumberdisplaymath," ! \."nor:nolinenumberdisplaymath," ! \."nor:thelinenumber," ! \."nob:linerefp," ! \."nob:linerefr," ! \."nob:lineref" " vim:ft=vim --- 1,55 ---- let g:TeX_package_option_lineno = ! \ 'left,' ! \.'right,' ! \.'switch,' ! \.'switch*,' ! \.'pagewise,' ! \.'running,' ! \.'modulo,' ! \.'mathlines,' ! \.'displaymath,' ! \.'hyperref' let g:TeX_package_lineno = ! \ 'sbr:Environments,' ! \.'env:linenumbers,' ! \.'env:linenumbers*,' ! \.'env:numquote,' ! \.'env:numquote*,' ! \.'env:numquotation,' ! \.'env:numquotation*,' ! \.'env:bframe,' ! \.'env:linenomath,' ! \.'env:linenomath*,' ! \.'bra:linelabel,' ! \.'sbr:Commands,' ! \.'nor:linenumbers,' ! \.'nor:linenumbers*,' ! \.'noo:linenumbers,' ! \.'nor:nolinenumbers,' ! \.'nor:runninglinenumbers,' ! \.'nor:runninglinenumbers*,' ! \.'noo:runninglinenumbers,' ! \.'nor:pagewiselinenumbers,' ! \.'nor:resetlinenumber,' ! \.'noo:resetlinenumber,' ! \.'nor:setrunninglinenumbers,' ! \.'nor:setpagewiselinenumbers,' ! \.'nor:switchlinenumbers,' ! \.'nor:switchlinenumbers*,' ! \.'nor:leftlinenumbers,' ! \.'nor:leftlinenumbers*,' ! \.'nor:rightlinenumbers,' ! \.'nor:rightlinenumbers*,' ! \.'nor:runningpagewiselinenumbers,' ! \.'nor:realpagewiselinenumbers,' ! \.'nor:modulolinenumbers,' ! \.'noo:modulolinenumbers,' ! \.'nor:linenumberdisplaymath,' ! \.'nor:nolinenumberdisplaymath,' ! \.'nor:thelinenumber,' ! \.'nob:linerefp,' ! \.'nob:linerefr,' ! \.'nob:lineref' " vim:ft=vim Index: longtable =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/longtable,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** longtable 3 May 2002 22:51:01 -0000 1.1 --- longtable 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,28 **** let g:TeX_package_option_longtable = ! \ "errorshow," ! \."pausing," ! \."set," ! \."final" let g:TeX_package_longtable = ! \ "sbr:Commands," ! \."nor:setlongtables," ! \."bra:LTleft," ! \."bra:LTright," ! \."bra:LTpre," ! \."bra:LTpost," ! \."bra:LTchunksize," ! \."bra:LTcapwidth," ! \."bra:LTcapwidth," ! \."sbr:Longtable," ! \."enb:longtable," ! \."sep:lt," ! \."nor:endhead," ! \."nor:endfirsthead," ! \."nor:endfoot," ! \."nor:endlastfoot," ! \."nor:kill," ! \."bra:caption," ! \."nob:caption," ! \."bra:caption*," ! \."nor:newpage" --- 1,28 ---- let g:TeX_package_option_longtable = ! \ 'errorshow,' ! \.'pausing,' ! \.'set,' ! \.'final' let g:TeX_package_longtable = ! \ 'sbr:Commands,' ! \.'nor:setlongtables,' ! \.'bra:LTleft,' ! \.'bra:LTright,' ! \.'bra:LTpre,' ! \.'bra:LTpost,' ! \.'bra:LTchunksize,' ! \.'bra:LTcapwidth,' ! \.'bra:LTcapwidth,' ! \.'sbr:Longtable,' ! \.'enb:longtable,' ! \.'sep:lt,' ! \.'nor:endhead,' ! \.'nor:endfirsthead,' ! \.'nor:endfoot,' ! \.'nor:endlastfoot,' ! \.'nor:kill,' ! \.'bra:caption,' ! \.'nob:caption,' ! \.'bra:caption*,' ! \.'nor:newpage' Index: manyfoot =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/manyfoot,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** manyfoot 30 Apr 2002 00:03:23 -0000 1.1.1.1 --- manyfoot 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,6 **** ! let g:TeX_package_manyfoot = "bra:newfootnote,bra:newfootnote[para]," ! \ . "bra:footnoteA,bra:footnoteB," ! \ . "bra:FootnoteA,bra:FootnoteB," ! \ . "bra:Footnotemark,bra:Footnotetext," ! \ . "SplitNote" ! let g:TeX_package_option_manyfoot = "para" --- 1,6 ---- ! let g:TeX_package_manyfoot = 'bra:newfootnote,bra:newfootnote[para],' ! \ . 'bra:footnoteA,bra:footnoteB,' ! \ . 'bra:FootnoteA,bra:FootnoteB,' ! \ . 'bra:Footnotemark,bra:Footnotetext,' ! \ . 'SplitNote' ! let g:TeX_package_option_manyfoot = 'para' Index: multicol =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/multicol,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** multicol 3 May 2002 22:51:01 -0000 1.1 --- multicol 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,13 **** ! let g:TeX_package_option_multicol = "" let g:TeX_package_multicol = ! \ "ens:multicols:{«cols»}[«text»][«sep»]," ! \."columnbreak," ! \."premulticols," ! \."postmulticols," ! \."multicolsep," ! \."columnsep," ! \."linewidth," ! \."columnseprule," ! \."flushcolumnt," ! \."raggedcolumns," ! \."unbalanced" --- 1,13 ---- ! let g:TeX_package_option_multicol = '' let g:TeX_package_multicol = ! \ 'ens:multicols:{«cols»}[«text»][«sep»],' ! \.'columnbreak,' ! \.'premulticols,' ! \.'postmulticols,' ! \.'multicolsep,' ! \.'columnsep,' ! \.'linewidth,' ! \.'columnseprule,' ! \.'flushcolumnt,' ! \.'raggedcolumns,' ! \.'unbalanced' Index: overcite =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/overcite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** overcite 10 Nov 2002 22:12:28 -0000 1.1 --- overcite 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,24 **** let g:TeX_package_option_cite = ! \ "verbose," ! \."ref," ! \."nospace," ! \."space," ! \."nosort," ! \."sort," ! \."nomove," ! \."noadjust" let g:TeX_package_cite = ! \ "bra:cite," ! \."bra:citen," ! \."bra:citenum," ! \."bra:citeonline," ! \."bra:nocite," ! \."sep:redefine," ! \."bra:citeform," ! \."bra:citepunct," ! \."bra:citeleft," ! \."bra:citeright," ! \."bra:citemid," ! \."bra:citedash" --- 1,24 ---- let g:TeX_package_option_cite = ! \ 'verbose,' ! \.'ref,' ! \.'nospace,' ! \.'space,' ! \.'nosort,' ! \.'sort,' ! \.'nomove,' ! \.'noadjust' let g:TeX_package_cite = ! \ 'bra:cite,' ! \.'bra:citen,' ! \.'bra:citenum,' ! \.'bra:citeonline,' ! \.'bra:nocite,' ! \.'sep:redefine,' ! \.'bra:citeform,' ! \.'bra:citepunct,' ! \.'bra:citeleft,' ! \.'bra:citeright,' ! \.'bra:citemid,' ! \.'bra:citedash' Index: ulem =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/ulem,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ulem 3 May 2002 22:51:01 -0000 1.1 --- ulem 25 Nov 2002 23:00:26 -0000 1.2 *************** *** 1,14 **** let g:TeX_package_option_ulem = ! \ "normalem," ! \."ULforem," ! \."normalbf," ! \."UWforbf" let g:TeX_package_ulem = ! \ "bra:uwave," ! \."bra:uline," ! \."bra:uuline," ! \."bra:sout," ! \."bra:xout," ! \."ULthickness," ! \."ULdepth" --- 1,14 ---- let g:TeX_package_option_ulem = ! \ 'normalem,' ! \.'ULforem,' ! \.'normalbf,' ! \.'UWforbf' let g:TeX_package_ulem = ! \ 'bra:uwave,' ! \.'bra:uline,' ! \.'bra:uuline,' ! \.'bra:sout,' ! \.'bra:xout,' ! \.'ULthickness,' ! \.'ULdepth' |
From: <sri...@us...> - 2002-11-25 01:20:17
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv23675 Modified Files: main.vim Log Message: check for a \ before the ` when inserting greek characters. before this, trying to type accented characters like \`a would not work. this would get expanded to \\alpha. bug report by Marc Finet. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** main.vim 25 Nov 2002 00:01:09 -0000 1.11 --- main.vim 25 Nov 2002 01:20:13 -0000 1.12 *************** *** 177,183 **** " for the start of a double quote, otherwise when we try to write " something like ``a (at the beginning of a quote), we immediately get ! " `\alpha. function! TEX_InsertGreekLetter(char) if a:char =~ '[a-zA-Z]' && getline('.')[col('.')-2] != '`' exe 'return s:greek_'.a:char else --- 177,185 ---- " for the start of a double quote, otherwise when we try to write " something like ``a (at the beginning of a quote), we immediately get ! " `\alpha. Also if there is a \ preceding the `, then do not insert a ! " greek letter so we can insert greek letters such as \`a. function! TEX_InsertGreekLetter(char) if a:char =~ '[a-zA-Z]' && getline('.')[col('.')-2] != '`' + \ && getline('.')[col('.')-2] != "\\" exe 'return s:greek_'.a:char else |
From: <mi...@us...> - 2002-11-25 00:01:12
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv12605 Modified Files: main.vim Log Message: fixed: SetTeXOptions breaking textwidth settings Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** main.vim 23 Nov 2002 21:39:22 -0000 1.10 --- main.vim 25 Nov 2002 00:01:09 -0000 1.11 *************** *** 4,8 **** " Email: sr...@fa... " URL: ! " Last Change: sob lis 23 10:00 2002 C " " Help: --- 4,8 ---- " Email: sr...@fa... " URL: ! " Last Change: pon lis 25 12:00 2002 C " " Help: *************** *** 475,478 **** --- 475,481 ---- " Finally set up the folding, options, mappings and quit. " ============================================================================== + " Save 'tw' + let textw = &textwidth + " SetTeXOptions: sets options/mappings for this file. {{{ function! <SID>SetTeXOptions() *************** *** 532,537 **** " }}} ! " Mappings defined in package files will overwritten all other exe 'source '.s:path.'/packages.vim' let &cpo = s:save_cpo --- 535,543 ---- " }}} ! " Mappings defined in package files will overwrite all other exe 'source '.s:path.'/packages.vim' + + " Restore 'tw' + let &textwidth = textw let &cpo = s:save_cpo |
From: <mi...@us...> - 2002-11-25 00:01:08
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv12585 Modified Files: polski Log Message: full version of support for polski package Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** polski 23 Nov 2002 21:36:28 -0000 1.3 --- polski 25 Nov 2002 00:01:05 -0000 1.4 *************** *** 1,11 **** ! " Maintainer: Mikolaj Machowski <mi...@wp...> ! " Last Change: sob lis 23 09:00 2002 C let g:TeX_package_option_polski = 'OT1,OT4,T1,plmath,nomathsymbols,MeX' let g:TeX_package_polski = \'sbr:Dywiz&Ska,'. \'nor:dywiz,'. - \'nor:pauza,'. \'nor:ppauza,'. \'nor:prefixing,'. \'nor:nonprefixing,'. --- 1,31 ---- ! " Author: Mikolaj Machowski <mi...@wp...> ! " (c) Copyright by Mikolaj Machowski 2002 ! " Last Change: pon lis 25 12:00 2002 C ! " License: Vim Charityware ! " ! " Plik jest w kodowaniu iso-8859-2. Je¶li chcesz go uzywac w MS-Windows musisz ! " go przekonwertowac na cp-1250. ! " ! " Plik ten jest czê¶ci± vim-latexSuite, ale: ! " Nie u¿ywaj±cy vim-latexSuite (http://vim-latex.sourceforge.net) mog± wyci±æ ! " oznaczon± czê¶æ. Reszta mo¿e byæ kopiowana jako osobny plik pod warunkiem ! " niezmieniania tej notki i informacji o prawach autorskich. ! " ! " This file is in iso-8859-2 encoding. If you want to use it in MS-Windows you ! " have to convert it to cp-1250. ! " ! " This file is part of vim-latexSuite but: ! " Those who do not use vim-latexSuite (http://vim-latex.sourceforge.net) can ! " cut off marked part. Rest of the file can be copied as separate file under ! " condition of leaving this notice and information about copyrights unchanged. + " --------8<------------- + " Czesc odpowiedzialna za menu let g:TeX_package_option_polski = 'OT1,OT4,T1,plmath,nomathsymbols,MeX' let g:TeX_package_polski = \'sbr:Dywiz&Ska,'. \'nor:dywiz,'. \'nor:ppauza,'. + \'nor:pauza,'. \'nor:prefixing,'. \'nor:nonprefixing,'. *************** *** 20,24 **** \'nor:tan,'. \'nor:tanh,'. ! \'nor:bra:arc,'. \'nor:ctg,'. \'nor:ctgh,'. --- 40,44 ---- \'nor:tan,'. \'nor:tanh,'. ! \'bra:arc,'. \'nor:ctg,'. \'nor:ctgh,'. *************** *** 26,66 **** \'nor:tgh' function! TPackagePolskiTylda() call IMAP (" ---", "~---", "tex") endfunction call TPackagePolskiTylda() " Zmodyfikowana i rozwinieta funkcja Andrzeja Ostruszki ! " iunmap <Space> ! inoremap <buffer> <silent> <Space> <Space><C-R>=<SID>TeXSpace()<CR> inoremap <buffer> <silent> <S-Space> ~ inoremap <buffer> <silent> <C-Space> <Space> ! function! s:TeXSpace() if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! return '' else ! let g:place = strpart(getline('.'), col('.') - 5, 4) ! if g:place =~? '^.\?[ ~(|]\?[aiouwz] $\|^[ ~]\?\u\. $' return "\<BS>~" ! elseif getline('.') =~? '\(\s\|^\|\~\)\(str\.\|ryc\.\|rys\.\|tab\.\|art\.\|vol\.\|nr\|tabl\.\|rozdz\.\|ss\.\|s\.\|t\.\|z\.\|prof\.\|hab\.\|red\.\|min\.\|gen\.\|kpt\.\|przew\.\|p³k\|mjr\|mgr\|bp\|ks\.\|o\+\.\|¶w\.\|dr\)\s\+$' return "\<BS>~" ! elseif getline('.') =~? '\d\s\+r\.\s\+$' ! s/\(\d\)\s\+r\.\s\+$/\1\~r\. /ei ! normal A ! return '' ! elseif getline('.') =~? '[IVXLCM]\s\+w\.\s\+$' ! s/\([IVXLCM]\)\s\+w\.\s\+$/\1\~w\. /ei ! normal A ! return '' ! elseif getline('.') =~? '\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)\.\?\s\+$' ! s/\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|m\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)\(\.\?\)\s\+$/\1\~\2\3 /ei ! normal A ! return '' ! elseif getline('.') =~? '[a-z±æê³ñó¶¿¼]-[a-z±æê³ñó¶¿¼]' ! s/\([a-z±æê³ñó¶¿¼]\)-\([a-z±æê³ñó¶¿¼]\)/\1\\dywiz \2/ei ! normal A ! return '' endif ! return '' endif endfunction --- 46,129 ---- \'nor:tgh' + " To wymaga calego pakietu vim-latexSuite - zakomentuj lub wytnij je¶li nie + " u¿ywasz (albo go ¶ci±gnij z http://vim-latex.sf.net) function! TPackagePolskiTylda() call IMAP (" ---", "~---", "tex") endfunction call TPackagePolskiTylda() + " --------8<------------- + " Zmodyfikowana i rozwinieta funkcja Andrzeja Ostruszki ! " Z dodatkiem od Benjiego Fishera (sprawdzanie sk³adni) ! " ! " Spacja ! inoremap <buffer> <silent> <Space> <Space><C-R>=<SID>Tex_polish_space()<CR> ! ! " Wymuszenie tyldy inoremap <buffer> <silent> <S-Space> ~ + + " Wymuszenie zwyklej spacji inoremap <buffer> <silent> <C-Space> <Space> ! function! s:Tex_polish_space() ! "Nic magicznego w matematyce if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' ! return "\<BS> " else ! let s:col = col('.') ! let s:linelength = strlen(getline('.')) + 1 ! " Wstaw tylde po spojnikach ! if strpart(getline('.'), col('.') - 4, 3) =~? '^[ ~(]\?[aiouwz] $' return "\<BS>~" ! " Wstaw tylde po inicjalach - konkretnie po pojedynczych wielkich ! " literach i kropce. Obs³uguje wiekszosc sytuacji. ! elseif strpart(getline('.'), col('.') - 5, 4) =~? '^[ ~]\?\u\. $' return "\<BS>~" ! " Wstaw tylde po tytulach, skrotach bibliograficznych, podpisach ! elseif strpart(getline('.'), col('.') - 9, 8) =~? '\(\s\|^\|\~\)\(str\.\|ryc\.\|rys\.\|tab\.\|art\.\|vol\.\|nr\|tabl\.\|rozdz\.\|ss\.\|s\.\|t\.\|z\.\|sir\|prof\.\|hab\.\|red\.\|min\.\|gen\.\|kpt\.\|przew\.\|p³k\|mjr\|mgr\|bp\|ks\.\|o\+\.\|¶w\.\|dr\)\s\+$' ! return "\<BS>~" ! " Wstaw tylde miedzy rokiem, wiekiem, a odpowiednim skrotem ! elseif strpart(getline('.'), col('.') - 8, 7) =~? '[0-9IVXLCM]\s\+\(r\|w\)\.[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/[0-9IVXLCM]\zs\s\+\ze\(w\|r\)\.[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\~/ei ! exe 'normal '.s:col.'|' ! if s:col == s:linelength ! return "\<Del> " ! else ! return "\<Left> \<Del>" ! endif ! " Wstaw tylde miedzy liczba a miara, itd. ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/\(\d\|mln\|mld\|tys\.\)\zs\s\+\ze\(z³\|gr\|ha\|m\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\~/ei ! exe 'normal '.s:col.'|' ! if s:col == s:linelength ! return "\<Del> " ! else ! return "\<Left> \<Del>" ! endif ! " Rozwin myslnik w zbitkach w '\dywiz ': ! " bialo-czerwony -> bialo\dywiz czerwony ! elseif strpart(getline('.'), col('.') - 20, 19) =~? '[a-z±æê³ñó¶¿¼]-[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}\s\+$' ! s/[a-z±æê³ñó¶¿¼]\zs-\ze[a-z±æê³ñó¶¿¼]\{-}[^a-z±æê³ñó¶¿¼]\{-}\s\+\%#/\\dywiz /ei ! let colb = s:col + 6 ! exe 'normal '.colb.'|' ! if s:col == s:linelength ! return "\<Del> " ! else ! return "\<Left> \<Del>" ! endif ! " Rozwin '--' miedzy liczbami w '\ppauza ': ! " 39--45 -> 39\ppauza 45 ! elseif strpart(getline('.'), col('.') - 10, 9) =~? '[0-9IVXLCM]--[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}\s\+$' ! s/[0-9IVXLCM]\zs--\ze[0-9IVXLCM]\{-}[^0-9IVXLCM]\{-}\s\+\%#/\\ppauza /ei ! let colb = s:col + 6 ! exe 'normal '.colb.'|' ! if s:col == s:linelength ! return "\<Del> " ! else ! return "\<Left> \<Del>" ! endif endif ! " Tu koncz komentowanie ostatniej sekcji endif + return "\<BS> " endfunction |
From: <mi...@us...> - 2002-11-23 21:39:25
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv3301 Modified Files: main.vim Log Message: Moved sourcing of package.vim to the end of file. Now mappings and other goodies defined in package files will overwrite all other stuff. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** main.vim 20 Nov 2002 06:27:55 -0000 1.9 --- main.vim 23 Nov 2002 21:39:22 -0000 1.10 *************** *** 4,8 **** " Email: sr...@fa... " URL: ! " Last Change: Tue Nov 19 10:00 PM 2002 PST " " Help: --- 4,8 ---- " Email: sr...@fa... " URL: ! " Last Change: sob lis 23 10:00 2002 C " " Help: *************** *** 467,471 **** exe 'source '.s:path.'/compiler.vim' exe 'source '.s:path.'/folding.vim' - exe 'source '.s:path.'/packages.vim' exe 'source '.s:path.'/templates.vim' exe 'source '.s:path.'/custommacros.vim' --- 467,470 ---- *************** *** 532,535 **** --- 531,537 ---- " }}} + + " Mappings defined in package files will overwritten all other + exe 'source '.s:path.'/packages.vim' let &cpo = s:save_cpo |
From: <mi...@us...> - 2002-11-23 21:36:30
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv2120 Modified Files: polski Log Message: much improved version of polski package file Index: polski =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages/polski,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** polski 7 Nov 2002 11:20:56 -0000 1.2 --- polski 23 Nov 2002 21:36:28 -0000 1.3 *************** *** 1,45 **** ! let g:TeX_package_option_polski = "OT1,OT4,T1,plmath,nomathsymbols,MeX" let g:TeX_package_polski = ! \"sbr:Dywiz&Ska,". ! \"dywiz,". ! \"pauza,". ! \"ppauza,". ! \"prefixing,". ! \"nonprefixing,". ! \"PLdateending,". ! \"sbr:Matematyka,". ! \"arccos,". ! \"arcctan,". ! \"arcsin,". ! \"arctan,". ! \"ctan,". ! \"ctanh,". ! \"tan,". ! \"tanh,". ! \"bra:arc,". ! \"ctg,". ! \"ctgh,". ! \"tg,". ! \"tgh" function! TPackagePolskiTylda() ! call IMAP(" A ", " A~", "tex") ! call IMAP(" a ", " a~", "tex") ! call IMAP(" I ", " I~", "tex") ! call IMAP(" i ", " i~", "tex") ! call IMAP(" O ", " O~", "tex") ! call IMAP(" o ", " o~", "tex") ! call IMAP(" U ", " U~", "tex") ! call IMAP(" u ", " u~", "tex") ! call IMAP(" W ", " W~", "tex") ! call IMAP(" w ", " w~", "tex") ! call IMAP(" Z ", " Z~", "tex") ! call IMAP(" z ", " z~", "tex") ! call IMAP(" tys. ", "~tys. ", "tex") ! call IMAP(" mln", "~mln", "tex") ! call IMAP(" mld", "~mld", "tex") ! call IMAP("...", "\ldots{}", "tex") ! call IMAP(" ---", "~---", "tex") ! call IMAP(" r. ", "~r. ", "tex") endfunction call TPackagePolskiTylda() --- 1,67 ---- ! " Maintainer: Mikolaj Machowski <mi...@wp...> ! " Last Change: sob lis 23 09:00 2002 C ! ! let g:TeX_package_option_polski = 'OT1,OT4,T1,plmath,nomathsymbols,MeX' let g:TeX_package_polski = ! \'sbr:Dywiz&Ska,'. ! \'nor:dywiz,'. ! \'nor:pauza,'. ! \'nor:ppauza,'. ! \'nor:prefixing,'. ! \'nor:nonprefixing,'. ! \'nor:PLdateending,'. ! \'sbr:Matematyka,'. ! \'nor:arccos,'. ! \'nor:arcctan,'. ! \'nor:arcsin,'. ! \'nor:arctan,'. ! \'nor:ctan,'. ! \'nor:ctanh,'. ! \'nor:tan,'. ! \'nor:tanh,'. ! \'nor:bra:arc,'. ! \'nor:ctg,'. ! \'nor:ctgh,'. ! \'nor:tg,'. ! \'nor:tgh' function! TPackagePolskiTylda() ! call IMAP (" ---", "~---", "tex") endfunction call TPackagePolskiTylda() + " Zmodyfikowana i rozwinieta funkcja Andrzeja Ostruszki + " iunmap <Space> + inoremap <buffer> <silent> <Space> <Space><C-R>=<SID>TeXSpace()<CR> + inoremap <buffer> <silent> <S-Space> ~ + inoremap <buffer> <silent> <C-Space> <Space> + function! s:TeXSpace() + if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' + return '' + else + let g:place = strpart(getline('.'), col('.') - 5, 4) + if g:place =~? '^.\?[ ~(|]\?[aiouwz] $\|^[ ~]\?\u\. $' + return "\<BS>~" + elseif getline('.') =~? '\(\s\|^\|\~\)\(str\.\|ryc\.\|rys\.\|tab\.\|art\.\|vol\.\|nr\|tabl\.\|rozdz\.\|ss\.\|s\.\|t\.\|z\.\|prof\.\|hab\.\|red\.\|min\.\|gen\.\|kpt\.\|przew\.\|p³k\|mjr\|mgr\|bp\|ks\.\|o\+\.\|¶w\.\|dr\)\s\+$' + return "\<BS>~" + elseif getline('.') =~? '\d\s\+r\.\s\+$' + s/\(\d\)\s\+r\.\s\+$/\1\~r\. /ei + normal A + return '' + elseif getline('.') =~? '[IVXLCM]\s\+w\.\s\+$' + s/\([IVXLCM]\)\s\+w\.\s\+$/\1\~w\. /ei + normal A + return '' + elseif getline('.') =~? '\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)\.\?\s\+$' + s/\(\d\|mln\|mld\|tys\.\)\s\+\(z³\|gr\|ha\|m\|t\|mies\|godz\|min\|sek\|cm\|km\|mln\|mld\|tys\.\)\(\.\?\)\s\+$/\1\~\2\3 /ei + normal A + return '' + elseif getline('.') =~? '[a-z±æê³ñó¶¿¼]-[a-z±æê³ñó¶¿¼]' + s/\([a-z±æê³ñó¶¿¼]\)-\([a-z±æê³ñó¶¿¼]\)/\1\\dywiz \2/ei + normal A + return '' + endif + return '' + endif + endfunction + + " vim:ft=vim |
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages In directory sc8-pr-cvs1:/tmp/cvs-serv1443 Added Files: eqlist eqparbox newalg outliner parallel schedule tipa Log Message: new package files --- NEW FILE: eqlist --- let g:TeX_package_option_eqlist = '' let g:TeX_package_eqlist = \ 'env:eqlist,' \.'env:eqlist*,' \.'env:Eqlist,' \.'env:Eqlist*,' \.'sep:modificators,' \.'eqlistinit,' \.'eqliststarinit,' \.'eqlistinitpar,' \.'eqlistlabel' --- NEW FILE: eqparbox --- (This appears to be a binary file; contents omitted.) --- NEW FILE: newalg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: outliner --- let g:TeX_package_option_outliner = '' let g:TeX_package_outliner = \ 'env:Outline,' \.'bra:Level,' \.'bra:SetBaseLevel,' \.'sep:preamble,' \.'bra:OutlinePageBreaks,' \.'bra:OutlinePageBreaks,' \.'bra:OutlineLevelStart,' \.'bra:OutlineLevelCont,' \.'bra:OutlineLevelEnd' --- NEW FILE: parallel --- let g:TeX_package_option_parallel = '' let g:TeX_package_parallel = \ 'env:Parallel,' \.'bra:ParallelLText,' \.'bra:ParallelRText,' \.'nor:ParallelPar,' \.'nor:tolerance' --- NEW FILE: schedule --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tipa --- let g:TeX_package_option_tipa = \ 'T1,' \.'noenc,' \.'tone,' \.'extra,' \.'safe' let g:TeX_package_tipa = \ 'sbr:Common,' \.'bra:textipa,' \.'env:IPA,' \.'tipaencoding,' \.'bra:super,' \.'nor:ipabar,' \.'brd:tipalowaraccent,' \.'brd:tipaupperaccent,' \.'brd:tipaLowaraccent,' \.'brd:tipaUpperaccent,' \.'brd:ipaclap,' \.'sbr:VowelsandConsonants,' \.'nor:textturna,' \.'nor:textrhooka,' \.'nor:textlhookfour,' \.'nor:textscripta,' \.'nor:textturnscripta,' \.'nor:textinvscripta,' \.'ae,' \.'nor:textaolig,' \.'nor:textsca,' \.'nor:textinvsca,' \.'nor:textscaolig,' \.'nor:textturnv,' \.'nor:textsoftsign,' \.'nor:texthardsign,' \.'nor:texthtb,' \.'nor:textscb,' \.'nor:textcrb,' \.'nor:textbarb,' \.'nor:textbeta,' \.'nor:textbarc,' \.'nor:texthtc,' \.'bra:v,' \.'bra:c,' \.'nor:textctc,' \.'nor:textstretchc,' \.'nor:textstretchcvar,' \.'nor:textctstretchc,' \.'nor:textctstretchcvar,' \.'nor:textcrd,' \.'nor:textbard,' \.'nor:texthtd,' \.'nor:textrtaild,' \.'nor:texthtrtaild,' \.'nor:textctd,' \.'nor:textfrhookd,' \.'nor:textfrhookdvar,' \.'nor:textdblig,' \.'nor:textdzlig,' \.'nor:textdctzlig,' \.'nor:textdyoghlig,' \.'nor:textctdctzlig,' \.'nor:textscdelta,' \.'nor:dh,' \.'nor:textrhooke,' \.'nor:textschwa,' \.'nor:textrhookschwa,' \.'nor:textreve,' \.'nor:textsce,' \.'nor:textepsilon,' \.'nor:textrhookepsilon,' \.'nor:textcloseepsilon,' \.'nor:textrevepsilon,' \.'nor:textrhookrevepsilon,' \.'nor:textcloserevepsilon,' \.'nor:textscf,' \.'nor:textscriptg,' \.'nor:textbarg,' \.'nor:textcrg,' \.'nor:texthtg,' \.'nor:textg,' \.'nor:textscg,' \.'nor:texthtscg,' \.'nor:textgamma,' \.'nor:textgrgamma,' \.'nor:textfrtailgamma,' \.'nor:textbktailgamma,' \.'nor:textbabygamma,' \.'nor:textramshorns,' \.'nor:texthvlig,' \.'nor:textcrh,' \.'nor:texthth,' \.'nor:textrtailhth,' \.'nor:textheng,' \.'nor:texththeng,' \.'nor:textturnh,' \.'nor:textsch,' \.'nor:i,' \.'nor:textbari,' \.'nor:textiota,' \.'nor:textlhti,' \.'nor:textlhtlongi,' \.'nor:textvibyi,' \.'nor:textraisevibyi,' \.'nor:textsci,' \.'nor:j,' \.'nor:textctj,' \.'nor:textctjvar,' \.'nor:textscj,' \.'bra:v,' \.'nor:textbardotlessj,' \.'nor:textObardotlessj,' \.'nor:texthtbardotlessj,' \.'nor:texthtbardotlessjvar,' \.'nor:texthtk,' \.'nor:textturnk,' \.'nor:textsck,' \.'nor:textturnsck,' \.'nor:textltilde,' \.'nor:textbarl,' \.'nor:textbeltl,' \.'nor:textrtaill,' \.'nor:textlyoghlig,' \.'nor:textOlyoghlig,' \.'nor:textscl,' \.'nor:textrevscl,' \.'nor:textlambda,' \.'nor:textcrlambda,' \.'nor:textltailm,' \.'nor:textturnm,' \.'nor:textturnmrleg,' \.'nor:texthmlig,' \.'nor:textscm,' \.'nor:textnrleg,' \.'~,' \.'nor:textltailn,' \.'nor:textfrbarn,' \.'nor:ng,' \.'nor:textrtailn,' \.'nor:textctn,' \.'nor:textnrleg,' \.'nor:textscn,' \.'nor:textbullseye,' \.'nor:textObullseye,' \.'nor:textbaro,' \.'nor:o,' \.'nor:textfemale,' \.'nor:textuncrfemale,' \.'nor:oe,' \.'nor:textscoelig,' \.'nor:textopeno,' \.'nor:textrhookopeno,' \.'nor:textturncelig,' \.'nor:textomega,' \.'nor:textinvomega,' \.'nor:textscomega,' \.'nor:textcloseomega,' \.'nor:textlhookp,' \.'nor:textscp,' \.'nor:textwynn,' \.'nor:textthorn,' \.'nor:textthornvari,' \.'nor:textthornvarii,' \.'nor:textthornvariii,' \.'nor:textthornvariv,' \.'nor:texthtp,' \.'nor:textphi,' \.'nor:texthtq,' \.'nor:textqplig,' \.'nor:textscq,' \.'nor:textfishhookr,' \.'nor:textlonglegr,' \.'nor:textrtailr,' \.'nor:textturnr,' \.'nor:textturnrrtail,' \.'nor:textturnlonglegr,' \.'nor:textscr,' \.'nor:textinvscr,' \.'nor:textrevscr,' \.'bra:v,' \.'nor:textrtails,' \.'nor:textesh,' \.'nor:textdoublebaresh,' \.'nor:textctesh,' \.'nor:textlooptoprevesh,' \.'nor:texthtt,' \.'nor:textlhookt,' \.'nor:textrtailt,' \.'nor:textfrhookt,' \.'nor:textctturnt,' \.'nor:texttctclig,' \.'nor:texttslig,' \.'nor:textteshlig,' \.'nor:textturnt,' \.'nor:textctt,' \.'nor:textcttctclig,' \.'nor:texttheta,' \.'nor:textbaru,' \.'nor:textupsilon,' \.'nor:textscu,' \.'nor:textturnscu,' \.'nor:textscriptv,' \.'nor:textturnw,' \.'nor:textchi,' \.'nor:textturny,' \.'nor:textscy,' \.'nor:textlhtlongy,' \.'nor:textvibyy,' \.'nor:textcommatailz,' \.'bra:v,' \.'nor:textctz,' \.'nor:textrtailz,' \.'nor:textcrtwo,' \.'nor:textturntwo,' \.'nor:textyogh,' \.'nor:textbenttailyogh,' \.'nor:textrevyogh,' \.'nor:textctyogh,' \.'nor:textturnthree,' \.'nor:textglotstop,' \.'nor:textraiseglotstop,' \.'nor:textbarglotstop,' \.'nor:textinvglotstop,' \.'nor:textcrinvglotstop,' \.'nor:textctinvglotstop,' \.'nor:textrevglotstop,' \.'nor:textturnglotstop,' \.'nor:textbarrevglotstop,' \.'nor:textpipe,' \.'nor:textpipevar,' \.'nor:textdoublebarpipe,' \.'nor:textdoublebarpipevar,' \.'nor:textdoublepipevar,' \.'nor:textdoublepipe,' \.'nor:textdoublebarslash,' \.'sbr:Suprasegmentals,' \.'nor:textprimstress,' \.'nor:textsecstress,' \.'nor:textlengthmark,' \.'nor:texthalflength,' \.'nor:textvertline,' \.'nor:textdoublevertline,' \.'bra:textbottomtiebar,' \.'nor:textdownstep,' \.'nor:textupstep,' \.'nor:textglobfall,' \.'nor:textglobrise,' \.'nor:textspleftarrow,' \.'nor:textdownfullarrow,' \.'nor:textupfullarrow,' \.'nor:textsubrightarrow,' \.'nor:textsubdoublearrow,' \.'sbr:AccentsandDiacritics,' \.'`,' \."'," \.'^,' \.'~,' \.'",' \.'bra:H,' \.'bra:r,' \.'bra:v,' \.'bra:u,' \.'=,' \.'.,' \.'bra:c,' \.'bra:textpolhook,' \.'nor:textrevpolhook{o,' \.'bra:textdoublegrave,' \.'bra:textsubgrave,' \.'bra:textsubacute,' \.'bra:textsubcircum,' \.'bra:textroundcap,' \.'bra:textacutemacron,' \.'bra:textgravemacron,' \.'bra:textvbaraccent,' \.'bra:textdoublevbaraccent,' \.'bra:textgravedot,' \.'bra:textdotacute,' \.'bra:textcircumdot,' \.'bra:texttildedot,' \.'bra:textbrevemacron,' \.'bra:textringmacron,' \.'bra:textacutewedge,' \.'bra:textdotbreve,' \.'bra:textsubbridge,' \.'bra:textinvsubbridge,' \.'sbr:SubscriptSquare,' \.'bra:textsubrhalfring,' \.'bra:textsublhalfring,' \.'bra:textsubw,' \.'bra:textoverw,' \.'bra:textseagull,' \.'bra:textovercross,' \.'bra:textsubplus,' \.'bra:textraising,' \.'bra:textlowering,' \.'bra:textadvancing,' \.'bra:textretracting,' \.'bra:textsubtilde,' \.'bra:textsubumlaut,' \.'bra:textsubring,' \.'bra:textsubwedge,' \.'bra:textsubbar,' \.'bra:textsubdot,' \.'bra:textsubarch,' \.'bra:textsyllabic,' \.'bra:textsuperimposetilde,' \.'nor:textcorner,' \.'nor:textopencorner,' \.'nor:textrhoticity,' \.'nor:textceltpal,' \.'nor:textlptr,' \.'nor:textrptr,' \.'nor:textrectangle,' \.'nor:textretractingvar,' \.'bra:texttoptiebar,' \.'nor:textrevapostrophe,' \.'nor:texthooktop,' \.'nor:textrthook,' \.'nor:textrthooklong,' \.'nor:textpalhook,' \.'nor:textpalhooklong,' \.'nor:textpalhookvar,' \.'bra:textsuperscript,' \.'sbr:ToneLetters,' \.'bra:tone,' \.'bra:stone,' \.'bra:rtone,' \.'nor:tone{55},' \.'nor:tone{44},' \.'nor:tone{33},' \.'nor:tone{22},' \.'nor:tone{11},' \.'nor:tone{51},' \.'nor:tone{15},' \.'nor:tone{45},' \.'nor:tone{12},' \.'nor:tone{454},' \.'sbr:DiacriticsExtIPA,' \.'bra:spreadlips,' \.'bra:overbridge,' \.'bra:bibridge,' \.'bra:subdoublebar,' \.'bra:subdoublevert,' \.'bra:subcorner,' \.'bra:whistle,' \.'bra:sliding,' \.'bra:crtilde,' \.'bra:dottedtilde,' \.'bra:doubletilde,' \.'bra:partvoiceless,' \.'bra:inipartvoiceless,' \.'bra:finpartvoiceless,' \.'bra:partvoice,' \.'bra:inipartvoice,' \.'bra:finpartvoice,' \.'bra:sublptr,' \.'bra:subrptr' |
From: <mi...@us...> - 2002-11-23 17:16:59
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv803 Modified Files: packages.vim Log Message: optimization of quotes Index: packages.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/packages.vim,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** packages.vim 15 Nov 2002 22:30:25 -0000 1.9 --- packages.vim 23 Nov 2002 17:16:56 -0000 1.10 *************** *** 4,8 **** " Version: 1.0 " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: pi± lis 15 11:00 2002 C " " Description: handling packages from within vim --- 4,8 ---- " Version: 1.0 " Created: Tue Apr 23 06:00 PM 2002 PST ! " Last Change: sob lis 23 02:00 2002 C " " Description: handling packages from within vim *************** *** 19,23 **** let s:path = expand("<sfile>:p:h") ! let s:menu_div = "20" com! -nargs=* TPackage call Tex_pack_one(<f-args>) --- 19,23 ---- let s:path = expand("<sfile>:p:h") ! let s:menu_div = 20 com! -nargs=* TPackage call Tex_pack_one(<f-args>) *************** *** 25,45 **** com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall() ! let g:Tex_package_supported = "" ! let g:Tex_package_detected = "" " Tex_pack_check: creates the package menu and adds to 'dict' setting. {{{ " function! Tex_pack_check(package) ! if has("gui_running") && filereadable(s:path."/packages/".a:package) call Tex_pack(a:package) ! let g:Tex_package_supported = g:Tex_package_supported.",".a:package endif if filereadable(s:path.'/dictionaries/'.a:package) exe 'setlocal dict+='.s:path.'/dictionaries/'.a:package ! if !has("gui_running") && filereadable(s:path."/dictionaries/".a:package) ! let g:Tex_package_supported = g:Tex_package_supported.",".a:package endif endif ! let g:Tex_package_supported = substitute(g:Tex_package_supported, "^,", "", "") endfunction --- 25,45 ---- com! -nargs=0 TPackageUpdateAll :silent! call Tex_pack_updateall() ! let g:Tex_package_supported = '' ! let g:Tex_package_detected = '' " Tex_pack_check: creates the package menu and adds to 'dict' setting. {{{ " function! Tex_pack_check(package) ! if has("gui_running") && filereadable(s:path.'/packages/'.a:package) call Tex_pack(a:package) ! let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif if filereadable(s:path.'/dictionaries/'.a:package) exe 'setlocal dict+='.s:path.'/dictionaries/'.a:package ! if !has("gui_running") && filereadable(s:path.'/dictionaries/'.a:package) ! let g:Tex_package_supported = g:Tex_package_supported.','.a:package endif endif ! let g:Tex_package_supported = substitute(g:Tex_package_supported, '^,', '', '') endfunction *************** *** 47,52 **** " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui") && filereadable(s:path."/packages/".a:package) ! exe "aunmenu ".s:p_menu_lev."&".a:package endif if filereadable(s:path.'/dictionaries/'.a:package) --- 47,52 ---- " Tex_pack_uncheck: removes package from menu and 'dict' settings. {{{ function! Tex_pack_uncheck(package) ! if has("gui") && filereadable(s:path.'/packages/'.a:package) ! exe 'aunmenu '.s:p_menu_lev.'&'.a:package endif if filereadable(s:path.'/dictionaries/'.a:package) *************** *** 58,66 **** " Tex_pack_updateall: {{{ function! Tex_pack_updateall() ! if exists("g:Tex_package_supported") let i = 1 while 1 ! let old_pack_name = Tex_Strntok(g:Tex_package_supported, ",", i) ! if old_pack_name == "" break endif --- 58,66 ---- " Tex_pack_updateall: {{{ function! Tex_pack_updateall() ! if exists('g:Tex_package_supported') let i = 1 while 1 ! let old_pack_name = Tex_Strntok(g:Tex_package_supported, ',', i) ! if old_pack_name == '' break endif *************** *** 68,73 **** let i = i + 1 endwhile ! let g:Tex_package_supported = "" ! let g:Tex_package_detected = "" call Tex_pack_all() else --- 68,73 ---- let i = i + 1 endwhile ! let g:Tex_package_supported = '' ! let g:Tex_package_detected = '' call Tex_pack_all() else *************** *** 82,86 **** let pwd = getcwd() exe 'cd '.s:path.'/packages' ! let filename = Tex_ChooseFile('Choose a package:') exe 'cd '.pwd else --- 82,86 ---- let pwd = getcwd() exe 'cd '.s:path.'/packages' ! let filename = Tex_ChooseFile('Choose a package: ') exe 'cd '.pwd else *************** *** 88,92 **** let omega = 1 while omega <= i ! exe "let packname = a:".omega call Tex_pack_check(packname) let omega = omega + 1 --- 88,92 ---- let omega = 1 while omega <= i ! exe 'let packname = a:'.omega call Tex_pack_check(packname) let omega = omega + 1 *************** *** 125,154 **** let beginline = search('\\begin{document}', 'W') exe 0 ! let oldpack = "" ! let packname = "" while search('usepackage.*', 'W') ! if line(".") > beginline break ! elseif getline(".") =~ "^\s*%" continue ! elseif getline(".") =~ "^[^%]\\{-}\\\\usepackage[^{]\\{-}[%$]" let packname = matchstr(getline(search('^[^%]\{-}\]{', 'W')), '^.\{-}\]{\zs[^}]*\ze}') ! elseif getline(".") =~ "^[^%]\\{-}\\\\usepackage" let packname = matchstr(getline("."), '^[^%]\{-}usepackage.\{-}{\zs[^}]*\ze}') endif ! let packname = substitute(packname, "\\s", "", "g") ! if packname =~ "," let i = 1 while 1 ! let pname = Tex_Strntok(packname, ",", i) if pname == '' break endif ! let g:Tex_package_detected = g:Tex_package_detected." ".pname call Tex_pack_check(pname) let i = i + 1 endwhile elseif oldpack != packname ! let g:Tex_package_detected = g:Tex_package_detected." ".packname call Tex_pack_check(packname) endif --- 125,154 ---- let beginline = search('\\begin{document}', 'W') exe 0 ! let oldpack = '' ! let packname = '' while search('usepackage.*', 'W') ! if line('.') > beginline break ! elseif getline('.') =~ '^\s*%' continue ! elseif getline('.') =~ '^[^%]\{-}\\usepackage[^{]\{-}[%$]' let packname = matchstr(getline(search('^[^%]\{-}\]{', 'W')), '^.\{-}\]{\zs[^}]*\ze}') ! elseif getline('.') =~ '^[^%]\{-}\\usepackage' let packname = matchstr(getline("."), '^[^%]\{-}usepackage.\{-}{\zs[^}]*\ze}') endif ! let packname = substitute(packname, '\s', '', 'g') ! if packname =~ ',' let i = 1 while 1 ! let pname = Tex_Strntok(packname, ',', i) if pname == '' break endif ! let g:Tex_package_detected = g:Tex_package_detected.' '.pname call Tex_pack_check(pname) let i = i + 1 endwhile elseif oldpack != packname ! let g:Tex_package_detected = g:Tex_package_detected.' '.packname call Tex_pack_check(packname) endif *************** *** 167,191 **** function! Tex_pack_supp_menu() let g:suplist = glob(s:path."/packages/*") ! let g:suplist = substitute(g:suplist, "\n", ",", "g") let nu_s_list = GetListCount(g:suplist) if nu_s_list <= s:menu_div ! let SupMenu = "" ! let NotSupMenu = "1" endif ! let basic_nu_s_list = "0" ! let OptMenu = "" while basic_nu_s_list < nu_s_list let s_item = GetListItem(g:suplist, basic_nu_s_list) let fptr = fnamemodify(s_item, ':p:t:r') let fpt = fnamemodify(s_item, ':p:t') ! if !exists("NotSupMenu") && basic_nu_s_list % s:menu_div == 0 let s_index = strpart(fptr, 0, 5) if strlen(s_item) > 5 ! let OptMenu = ".".s_index."\\.\\.\\.\\ -" else ! let OptMenu = ".".s_index."\\ -" endif endif ! exe "amenu ".s:p_menu_lev."&Supported".OptMenu.".&".fptr." :call Tex_pack_supp('".fpt."')<CR>" let basic_nu_s_list = basic_nu_s_list + 1 endwhile --- 167,191 ---- function! Tex_pack_supp_menu() let g:suplist = glob(s:path."/packages/*") ! let g:suplist = substitute(g:suplist, "\n", ',', 'g') let nu_s_list = GetListCount(g:suplist) if nu_s_list <= s:menu_div ! let SupMenu = '' ! let NotSupMenu = 1 endif ! let basic_nu_s_list = 0 ! let OptMenu = '' while basic_nu_s_list < nu_s_list let s_item = GetListItem(g:suplist, basic_nu_s_list) let fptr = fnamemodify(s_item, ':p:t:r') let fpt = fnamemodify(s_item, ':p:t') ! if !exists('NotSupMenu') && basic_nu_s_list % s:menu_div == 0 let s_index = strpart(fptr, 0, 5) if strlen(s_item) > 5 ! let OptMenu = '.'.s_index.'\.\.\.\ -' else ! let OptMenu = '.'.s_index.'\ -' endif endif ! exe 'amenu '.s:p_menu_lev.'&Supported'.OptMenu.'.&'.fptr." :call Tex_pack_supp('".fpt."')<CR>" let basic_nu_s_list = basic_nu_s_list + 1 endwhile *************** *** 195,217 **** " Tex_pack: loads the options (and commands) for the given package {{{ function! Tex_pack(pack) ! let basic_nu_p_list = "" ! let nu_p_list = "" ! let g:p_file = s:path . "/packages/" . a:pack if filereadable(g:p_file) ! exe "source " . g:p_file ! exe "let g:p_list = g:TeX_package_" . a:pack ! exe "let g:p_o_list = g:TeX_package_option_" . a:pack " Creating package.Option menu {{{ ! if exists("g:p_o_list") && g:p_o_list != "" let nu_p_o_list = GetListCount(g:p_o_list) if nu_p_o_list <= s:menu_div ! let OptMenu = "" ! let NotOptMenu = "1" endif ! if nu_p_o_list == "1" ! let p_o_delimiter = "" else ! let p_o_delimiter = "," endif let basic_nu_p_o_list = 0 --- 195,217 ---- " Tex_pack: loads the options (and commands) for the given package {{{ function! Tex_pack(pack) ! let basic_nu_p_list = '' ! let nu_p_list = '' ! let g:p_file = s:path . '/packages/' . a:pack if filereadable(g:p_file) ! exe 'source ' . g:p_file ! exe 'let g:p_list = g:TeX_package_' . a:pack ! exe 'let g:p_o_list = g:TeX_package_option_' . a:pack " Creating package.Option menu {{{ ! if exists('g:p_o_list') && g:p_o_list != '' let nu_p_o_list = GetListCount(g:p_o_list) if nu_p_o_list <= s:menu_div ! let OptMenu = '' ! let NotOptMenu = 1 endif ! if nu_p_o_list == 1 ! let p_o_delimiter = '' else ! let p_o_delimiter = ',' endif let basic_nu_p_o_list = 0 *************** *** 220,227 **** let p_o_item = GetListItem(g:p_o_list, basic_nu_p_o_list) let p_o_item_def = strpart(p_o_item, 0, 3) ! let p_o_item_name = substitute(p_o_item, "^...:", "", "") ! if !exists("NotOptMenu") && (o_loop_nu % s:menu_div == 0 || p_o_item_def == "sbr") ! if p_o_item_def == "sbr" ! let OptMenu = ".&".p_o_item_name let o_loop_nu = 1 let basic_nu_p_o_list = basic_nu_p_o_list + 1 --- 220,227 ---- let p_o_item = GetListItem(g:p_o_list, basic_nu_p_o_list) let p_o_item_def = strpart(p_o_item, 0, 3) ! let p_o_item_name = substitute(p_o_item, '^...:', '', '') ! if !exists('NotOptMenu') && (o_loop_nu % s:menu_div == 0 || p_o_item_def == 'sbr') ! if p_o_item_def == 'sbr' ! let OptMenu = '.&'.p_o_item_name let o_loop_nu = 1 let basic_nu_p_o_list = basic_nu_p_o_list + 1 *************** *** 230,249 **** let ost_index = strpart(p_o_item_name, 0, 4) if strlen(p_o_item_name) > 5 ! let OptMenu = ".".ost_index."\\.\\.\\.\\ -" else ! let OptMenu = ".".ost_index."\\ -" endif endif endif ! let l_m_p_o_item = "&".substitute(p_o_item, "ä", "", "") ! let p_o_end = p_o_item[strlen(p_o_item)-1] if p_o_end !~ "[a-zA-Z}]" ! let r_m_p_o_item = "<plug><C-r>=IMAP_PutTextWithMovement('".p_o_item."ä".p_o_delimiter."«»')<cr>" ! elseif p_o_end == "}" let r_m_p_o_item = "<plug><C-r>=IMAP_PutTextWithMovement('".p_o_item.p_o_delimiter."«»')<cr>" else ! let r_m_p_o_item = "<plug>".p_o_item.p_o_delimiter endif ! exe "amenu ".s:p_menu_lev."&".a:pack.".&Options".OptMenu.".".l_m_p_o_item." ".r_m_p_o_item let basic_nu_p_o_list = basic_nu_p_o_list + 1 let o_loop_nu = o_loop_nu + 1 --- 230,249 ---- let ost_index = strpart(p_o_item_name, 0, 4) if strlen(p_o_item_name) > 5 ! let OptMenu = '.'.ost_index.'\.\.\.\ -' else ! let OptMenu = '.'.ost_index.'\ -' endif endif endif ! let l_m_p_o_item = '&'.substitute(p_o_item, 'ä', '', '') ! let p_o_end = p_o_item[strlen(p_o_item) - 1] if p_o_end !~ "[a-zA-Z}]" ! let r_m_p_o_item = "<plug><C-r>=IMAP_PutTextWithMovement('".p_o_item.'ä'.p_o_delimiter."«»')<cr>" ! elseif p_o_end == '}' let r_m_p_o_item = "<plug><C-r>=IMAP_PutTextWithMovement('".p_o_item.p_o_delimiter."«»')<cr>" else ! let r_m_p_o_item = '<plug>'.p_o_item.p_o_delimiter endif ! exe 'amenu '.s:p_menu_lev.'&'.a:pack.'.&Options'.OptMenu.'.'.l_m_p_o_item.' '.r_m_p_o_item let basic_nu_p_o_list = basic_nu_p_o_list + 1 let o_loop_nu = o_loop_nu + 1 *************** *** 253,258 **** let nu_p_list = GetListCount(g:p_list) if nu_p_list <= s:menu_div ! let ComMenu = "" ! let NotComMenu = "1" endif let basic_nu_p_list = 0 --- 253,258 ---- let nu_p_list = GetListCount(g:p_list) if nu_p_list <= s:menu_div ! let ComMenu = '' ! let NotComMenu = 1 endif let basic_nu_p_list = 0 *************** *** 261,338 **** let p_item = GetListItem(g:p_list, basic_nu_p_list) let p_item_def = strpart(p_item, 0, 3) ! let p_item_name = substitute(p_item, "^...:", "", "") ! if !exists("NotComMenu") && p_item_def == "sbr" ! let ComMenu = ".&".p_item_name let loop_nu = 1 let basic_nu_p_list = basic_nu_p_list + 1 let p_item = GetListItem(g:p_list, basic_nu_p_list) let p_item_def = strpart(p_item, 0, 3) ! let p_item_name = substitute(p_item, "^...:", "", "") endif " testing command type {{{ ! if p_item_def == "bra" ! let com_type = "{}" ! let l_m_item = "\\\\&".p_item_name."{}" let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."{ä}«»')<cr>" ! elseif p_item_def == "brs" ! let com_type = "{}" ! let l_m_item = "\\\\&".substitute(p_item_name, "[ä«»]", "", "g") let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."«»')<cr>" ! elseif p_item_def == "brd" ! let com_type = "{}{}" ! let l_m_item = "\\\\&".p_item_name."{}{}" let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."{ä}{«»}«»')<cr>" ! elseif p_item_def == "sep" ! let com_type = "" ! let l_m_item = "-packsep".basic_nu_p_list."-" ! let r_m_item = ":" ! elseif p_item_def == "env" ! let com_type = "(E)" ! let l_m_item = "&".p_item_name."(E)" ! let r_m_item = "<plug>\\begin{".p_item_name."}<cr> <cr>\\end{".p_item_name."}«»<Up><Left>" ! elseif p_item_def == "ens" ! let com_type = "(E)" ! let p_env_spec = substitute(p_item_name, ".*:", "", "") ! let p_env_name = matchstr(p_item_name, "^[^:]*") ! let l_m_item = "&".p_env_name."(E)" ! let r_m_item = "<plug>\\begin{".p_env_name."}".p_env_spec."<cr>«»<cr>\\end{".p_env_name."}«»<Up><Up><C-j>" ! elseif p_item_def == "eno" ! let com_type = "(E)" ! let l_m_item = "&".p_item_name."(E)" ! let r_m_item = "<plug>\\begin[«»]{".p_item_name."}<cr>«»<cr>\\end{".p_item_name."}«»<Up><Up><C-j>" ! elseif p_item_def == "nor" let com_type = "\\\\'" ! let l_m_item = "\\\\&".p_item_name."'" ! let r_m_item = "<plug>\\".p_item_name." " ! elseif p_item_def == "noo" ! let com_type = "\\\\[]" ! let l_m_item = "\\\\&".p_item_name."[]" let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."[ä]«»')<cr>" ! elseif p_item_def == "nob" ! let com_type = "[]{}" ! let l_m_item = "\\\\&".p_item_name."[]{}" let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."[ä]{«»}«»')<cr>" ! elseif p_item_def == "pla" ! let com_type = "(p)" ! let l_m_item = "&".p_item_name."'" ! let r_m_item = "<plug>".p_item_name." " ! elseif p_item_def == "spe" ! let com_type = "(s)" ! let l_m_item = "&".p_item_name ! let r_m_item = "<plug>".p_item_name else ! let com_type = "\\\\" ! let l_m_item = "\\\\&".p_item_name let r_m_item = "<plug>\\".p_item_name endif " }}} ! if !exists("NotComMenu") && loop_nu % s:menu_div == 0 let st_index = strpart(p_item_name, 0, 4) if strlen(p_item_name) > 4 ! let ComMenu = ".".com_type."&".st_index."\\.\\.\\.\\ -" else ! let ComMenu = ".".com_type."&".st_index."\\ -" endif endif ! exe "amenu ".s:p_menu_lev."&".a:pack.ComMenu.".".l_m_item." ".r_m_item let basic_nu_p_list = basic_nu_p_list + 1 let loop_nu = loop_nu + 1 --- 261,338 ---- let p_item = GetListItem(g:p_list, basic_nu_p_list) let p_item_def = strpart(p_item, 0, 3) ! let p_item_name = substitute(p_item, '^...:', '', '') ! if !exists('NotComMenu') && p_item_def == 'sbr' ! let ComMenu = '.&'.p_item_name let loop_nu = 1 let basic_nu_p_list = basic_nu_p_list + 1 let p_item = GetListItem(g:p_list, basic_nu_p_list) let p_item_def = strpart(p_item, 0, 3) ! let p_item_name = substitute(p_item, '^...:', '', '') endif " testing command type {{{ ! if p_item_def == 'bra' ! let com_type = '{}' ! let l_m_item = '\\&'.p_item_name.'{}' let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."{ä}«»')<cr>" ! elseif p_item_def == 'brs' ! let com_type = '{}' ! let l_m_item = '\\&'.substitute(p_item_name, "[ä«»]", '', 'g') let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."«»')<cr>" ! elseif p_item_def == 'brd' ! let com_type = '{}{}' ! let l_m_item = '\\&'.p_item_name.'{}{}' let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."{ä}{«»}«»')<cr>" ! elseif p_item_def == 'sep' ! let com_type = '' ! let l_m_item = '-packsep'.basic_nu_p_list.'-' ! let r_m_item = ':' ! elseif p_item_def == 'env' ! let com_type = '(E)' ! let l_m_item = '&'.p_item_name.'(E)' ! let r_m_item = '<plug>\begin{'.p_item_name.'}<cr> <cr>\end{'.p_item_name.'}«»<Up><Left>' ! elseif p_item_def == 'ens' ! let com_type = '(E)' ! let p_env_spec = substitute(p_item_name, '.*:', '', '') ! let p_env_name = matchstr(p_item_name, '^[^:]*') ! let l_m_item = '&'.p_env_name.'(E)' ! let r_m_item = '<plug>\begin{'.p_env_name.'}'.p_env_spec.'<cr>«»<cr>\end{'.p_env_name.'}«»<Up><Up><C-j>' ! elseif p_item_def == 'eno' ! let com_type = '(E)' ! let l_m_item = '&'.p_item_name.'(E)' ! let r_m_item = '<plug>\begin[«»]{'.p_item_name.'}<cr>«»<cr>\end{'.p_item_name.'}«»<Up><Up><C-j>' ! elseif p_item_def == 'nor' let com_type = "\\\\'" ! let l_m_item = '\\&'.p_item_name."'" ! let r_m_item = "<plug>\\".p_item_name.' ' ! elseif p_item_def == 'noo' ! let com_type = '\\[]' ! let l_m_item = '\\&'.p_item_name.'[]' let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."[ä]«»')<cr>" ! elseif p_item_def == 'nob' ! let com_type = '[]{}' ! let l_m_item = '\\&'.p_item_name.'[]{}' let r_m_item = "<plug><C-r>=IMAP_PutTextWithMovement('\\".p_item_name."[ä]{«»}«»')<cr>" ! elseif p_item_def == 'pla' ! let com_type = '(p)' ! let l_m_item = '&'.p_item_name."'" ! let r_m_item = '<plug>'.p_item_name.' ' ! elseif p_item_def == 'spe' ! let com_type = '(s)' ! let l_m_item = '&'.p_item_name ! let r_m_item = '<plug>'.p_item_name else ! let com_type = '\\' ! let l_m_item = '\\&'.p_item_name let r_m_item = "<plug>\\".p_item_name endif " }}} ! if !exists('NotComMenu') && loop_nu % s:menu_div == 0 let st_index = strpart(p_item_name, 0, 4) if strlen(p_item_name) > 4 ! let ComMenu = '.'.com_type.'&'.st_index.'\.\.\.\ -' else ! let ComMenu = '.'.com_type.'&'.st_index.'\ -' endif endif ! exe 'amenu '.s:p_menu_lev.'&'.a:pack.ComMenu.'.'.l_m_item.' '.r_m_item let basic_nu_p_list = basic_nu_p_list + 1 let loop_nu = loop_nu + 1 *************** *** 346,360 **** function! Tex_pack_supp(supp_pack) call Tex_pack(a:supp_pack) ! exe "let g:s_p_o = g:TeX_package_option_".a:supp_pack ! if exists("g:s_p_o") && g:s_p_o != "" ! exe "normal i\\usepackage{".a:supp_pack."}«»" ! exe "normal F{i[]\<Right>" else ! exe "normal i\\usepackage{".a:supp_pack."}\<cr>" endif ! if g:Tex_package_supported == "" let g:Tex_package_supported = a:supp_pack else ! let g:Tex_package_supported = g:Tex_package_supported . ",". a:supp_pack endif endfunction --- 346,360 ---- function! Tex_pack_supp(supp_pack) call Tex_pack(a:supp_pack) ! exe 'let g:s_p_o = g:TeX_package_option_'.a:supp_pack ! if exists('g:s_p_o') && g:s_p_o != '' ! exe 'normal i\usepackage{'.a:supp_pack.'}«»' ! exe 'normal F{i[]'."\<Right>" else ! exe 'normal i\usepackage{'.a:supp_pack."}\<cr>" endif ! if g:Tex_package_supported == '' let g:Tex_package_supported = a:supp_pack else ! let g:Tex_package_supported = g:Tex_package_supported.','.a:supp_pack endif endfunction *************** *** 364,368 **** " (see Tex_package_from_line in envmacros.vim) function! Tex_PutPackage(package) ! if filereadable(s:path."/packages/".a:package) call Tex_pack_supp(a:package) call Tex_pack_updateall() --- 364,368 ---- " (see Tex_package_from_line in envmacros.vim) function! Tex_PutPackage(package) ! if filereadable(s:path.'/packages/'.a:package) call Tex_pack_supp(a:package) call Tex_pack_updateall() *************** *** 373,383 **** if g:Tex_Menus - exe "amenu ".s:p_menu_lev."&UpdatePackage :call Tex_pack(expand('<cword>'))<cr>" - exe "amenu ".s:p_menu_lev."&UpdateAll :call Tex_pack_updateall()<cr>" - endif ! if g:Tex_Menus call Tex_pack_supp_menu() call Tex_pack_all() endif --- 373,383 ---- if g:Tex_Menus ! exe 'amenu '.s:p_menu_lev.'&UpdatePackage :call Tex_pack(expand("<cword>"))<cr>' ! exe 'amenu '.s:p_menu_lev.'&UpdateAll :call Tex_pack_updateall()<cr>' ! call Tex_pack_supp_menu() call Tex_pack_all() + endif |
From: <sri...@us...> - 2002-11-21 09:58:09
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory sc8-pr-cvs1:/tmp/cvs-serv18220 Modified Files: compiler.vim Log Message: Account for more than one error on the same line. TODO: When a latex error occurs far away from the beginning of a line, as This is a long line which is quite long really and here is the $\errorthingie$ Then the corresponding line in the log file might look like l.26 .... here is the $\errorthingie$. Which causes a faulty calculation of the column number. A patter search approach might therefore be much more robust at column number calculations. Index: compiler.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** compiler.vim 20 Nov 2002 11:09:58 -0000 1.13 --- compiler.vim 21 Nov 2002 09:58:06 -0000 1.14 *************** *** 3,7 **** " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Wed Nov 20 03:00 AM 2002 PST " " Description: functions for compiling/viewing/searching latex documents --- 3,7 ---- " Author: Srinath Avadhanula " Created: Tue Apr 23 05:00 PM 2002 PST ! " Last Change: Thu Nov 21 12:00 AM 2002 PST " " Description: functions for compiling/viewing/searching latex documents *************** *** 121,125 **** cwindow " if we moved to a different window, then it means we had some errors. ! if winnum != winnr() call UpdatePreviewWindow(mainfname) exe 'nnoremap <buffer> <silent> j j:call UpdatePreviewWindow("'.mainfname.'")<CR>' --- 121,125 ---- cwindow " if we moved to a different window, then it means we had some errors. ! if winnum != winnr() && glob(mainfname.'.log') != '' call UpdatePreviewWindow(mainfname) exe 'nnoremap <buffer> <silent> j j:call UpdatePreviewWindow("'.mainfname.'")<CR>' *************** *** 127,131 **** exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> :call GotoErrorLocation("'.mainfname.'", '.winnum.')<CR>' " resize the window to just fit in with the number of lines. --- 127,131 ---- exe 'nnoremap <buffer> <silent> <up> <up>:call UpdatePreviewWindow("'.mainfname.'")<CR>' exe 'nnoremap <buffer> <silent> <down> <down>:call UpdatePreviewWindow("'.mainfname.'")<CR>' ! exe 'nnoremap <buffer> <silent> <enter> <enter>:wincmd w<cr>:call GotoErrorLocation("'.mainfname.'", '.winnum.')<CR>' " resize the window to just fit in with the number of lines. *************** *** 238,241 **** --- 238,242 ---- " Description: function! PositionPreviewWindow(filename) + if getline('.') !~ '|\d\+ \(error\|warning\)|' if !search('|\d\+ \(error\|warning\)|') *************** *** 244,248 **** --- 245,268 ---- endif endif + + let errpat = matchstr(getline('.'), '\zs|\d\+ \(error\|warning\)|\ze') let linenum = matchstr(getline('.'), '|\zs\d\+\ze \(error\|warning\)|') + + let errline = line('.') + 0 + let numrep = 0 + while 1 + if getline('.') =~ errpat + let numrep = numrep + 1 + normal! 0 + call search('|\d\+ \(warning\|error\)|') + endif + if line('.') == errline + break + else + call search(errpat, 'W') + endif + endwhile + if getline('.') =~ '|\d\+ warning|' let searchpat = escape(matchstr(getline('.'), '|\d\+ warning|\s*\zs.*'), '\ ') *************** *** 250,253 **** --- 270,274 ---- let searchpat = 'l.'.linenum endif + exec 'bot pedit +/'.searchpat.'/ '.a:filename.'.log' " TODO: This is not robust enough. Check that a wincmd j actually takes *************** *** 255,258 **** --- 276,287 ---- " first time around. wincmd j + if searchpat =~ 'l.\d\+' && numrep > 1 + while numrep > 1 + call search(searchpat, 'W') + normal! z. + let numrep = numrep - 1 + endwhile + endif + endfunction " }}} " UpdatePreviewWindow: updates the view of the log file {{{ |