Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22767
Modified Files:
compiler.vim main.vim texrc
Log Message:
New: Make the program for creating the .ind file customizable via the
Tex_MakeIndexFlavor. (requested by Berta Milan)
New: Make the pattern used to detect diacritics customizable via the
Tex_SmartBSPattern (requested by Berta Milan)
Index: compiler.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/compiler.vim,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** compiler.vim 24 May 2004 23:55:17 -0000 1.67
--- compiler.vim 6 Jun 2004 23:21:25 -0000 1.68
***************
*** 514,518 ****
if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter
echomsg "Running makeindex..."
! let temp_mp = &mp | let &mp='makeindex $*.idx'
exec 'silent! make '.mainFileName_root
let &mp = temp_mp
--- 514,518 ----
if runCount == 0 && glob(idxFileName) != '' && idxlinesBefore != idxlinesAfter
echomsg "Running makeindex..."
! let temp_mp = &mp | let &mp = Tex_GetVarValue('Tex_MakeIndexFlavor')
exec 'silent! make '.mainFileName_root
let &mp = temp_mp
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -d -r1.63 -r1.64
*** main.vim 22 May 2004 01:24:14 -0000 1.63
--- main.vim 6 Jun 2004 23:21:25 -0000 1.64
***************
*** 264,277 ****
" 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
--- 264,269 ----
" 7x. Strings like "\v{s}", "\'{y}" are considered like one character and are
" deleted with one <BS>.
! let s:smartBS_pat = Tex_GetVarValue('Tex_SmartBSPattern')
!
fun! s:SmartBS_pat()
return s:smartBS_pat
Index: texrc
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/texrc,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** texrc 22 May 2004 01:25:23 -0000 1.43
--- texrc 6 Jun 2004 23:21:25 -0000 1.44
***************
*** 188,194 ****
TexLet g:Tex_Flavor = 'latex'
! " specifies the BibTeX flavor and if necessary options.
TexLet g:Tex_BibtexFlavor = 'bibtex'
" By default the program described by g:Tex_Flavor above is called with the
" flags '--src-specials --interaction=nonstopmode'. If your particular version
--- 188,200 ----
TexLet g:Tex_Flavor = 'latex'
! " specifies the BibTeX flavor and if necessary options. If you use $* in this
! " setting, it will be replaced by the *root* of the main file name, i.e, if
! " the main file is "thesis.tex", $* will be "thesis".
TexLet g:Tex_BibtexFlavor = 'bibtex'
+ " specifies the MakeIndedx flavor and if necessary options. $* will be
+ " replaced by the *root* of the main file name. See above.
+ TexLet g:Tex_MakeIndexFlavor = 'makeindex $*.idx'
+
" By default the program described by g:Tex_Flavor above is called with the
" flags '--src-specials --interaction=nonstopmode'. If your particular version
***************
*** 431,434 ****
--- 437,452 ----
" Default: 1
TexLet g:Tex_SmartKeyBS = 1
+ " The pattern used to detect whether the previous characters comprise a
+ " diacritic character. This default pattern detects the standard LaTeX
+ " diacritics
+ TexLet g:Tex_SmartBSPattern =
+ \ "\\\\[\"^'=v]{\\S}" . '\|' .
+ \ "\\\\[\"^'=]\\S" . '\|' .
+ \ '\\v \S' . '\|' .
+ \ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' .
+ \ '\\v \\[iI]' . '\|' .
+ \ '\\q \S' . '\|' .
+ \ '\\-' .
+ \ '\)' . "$"
" Pressing " (english double quote) will insert `` or '' by making an
|