Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite
In directory sc8-pr-cvs1:/tmp/cvs-serv25069
Modified Files:
main.vim
Log Message:
- make s:SmartDots() insert \dots instead of \cdots or \ldots if the
amsmath package is detected.
Index: main.vim
===================================================================
RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** main.vim 29 Aug 2003 02:29:35 -0000 1.46
--- main.vim 13 Sep 2003 07:03:13 -0000 1.47
***************
*** 294,301 ****
endif " }}}
" SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{
if g:Tex_SmartKeyDot
function! <SID>SmartDots()
! if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath'
\&& strpart(getline('.'), col('.')-3, 2) == '..'
return "\<bs>\<bs>\\cdots"
--- 294,306 ----
endif " }}}
" SmartDots: inserts \cdots instead of ... in math mode otherwise \ldots {{{
+ " if amsmath package is detected then just use \dots and let amsmath take care
+ " of it.
if g:Tex_SmartKeyDot
function! <SID>SmartDots()
! if strpart(getline('.'), col('.')-3, 2) == '..' &&
! \ g:Tex_package_detected =~ '\<amsmath\>'
! return "\<bs>\<bs>\\dots"
! elseif synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath'
\&& strpart(getline('.'), col('.')-3, 2) == '..'
return "\<bs>\<bs>\\cdots"
|