[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.3,1.4
Brought to you by:
srinathava,
tmaas
From: <mi...@us...> - 2002-11-07 11:21:14
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite In directory usw-pr-cvs1:/tmp/cvs-serv24473 Modified Files: main.vim Log Message: main.vim: 1. added to SmartDots inserting \ldots outside math mode 2. removed from "other miscellaneous stuff from imaps.vim" some redundant functions (secondary maps for sections and math symbols). Sometimes too much is just too much. Three letter system for sections and auctex shortcuts for math symbols seems more logical for me. Index: main.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/latex-suite/main.vim,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main.vim 4 Nov 2002 15:39:25 -0000 1.3 --- main.vim 7 Nov 2002 11:21:12 -0000 1.4 *************** *** 4,8 **** " Email: sr...@fa... " URL: ! " Last Change: sob maj 04 08:00 2002 U " " Help: --- 4,8 ---- " Email: sr...@fa... " URL: ! " Last Change: czw lis 07 01:00 2002 C " " Help: *************** *** 127,135 **** call IMAP ("sq".s:ml, "\\sqrt{ä}«»", "tex") call IMAP ("eps".s:ml, "\\psfig{figure=ä.eps}«»", "tex") - call IMAP ("sec".s:ml, "\\section{ä}«»", "tex") - call IMAP ("ssec".s:ml, "\\subsection{ä}«»", "tex") - call IMAP ("sssec".s:ml, "\\subsubsection{ä}«»", "tex") - call IMAP ("sec2".s:ml, "\\subsection{ä}«»", "tex") - call IMAP ("sec3".s:ml, "\\subsubsection{ä}«»", "tex") call IMAP ("sum".s:ml, "\\sum{ä}{«»}«»", "tex") call IMAP ("suml".s:ml, "\\sum\\limits_{ä}^{«»}«»", "tex") --- 127,130 ---- *************** *** 142,147 **** call IMAP ("ll".s:ml, "\\left", "tex") call IMAP ("part".s:ml, "\\partial", "tex") - call IMAP ("dot".s:ml, "\\dot{ä}«»", "tex") - call IMAP ("ddot".s:ml, "\\ddot{ä}«»", "tex") " }}} " Greek Letters {{{ --- 137,140 ---- *************** *** 315,323 **** endfun " }}} ! " SmartDots: inserts \cdots instead of ... in math mode otherwise ... {{{ function! <SID>SmartDots() if synIDattr(synID(line('.'),col('.')-1,0),"name") =~ '^texMath' \&& strpart(getline('.'), col('.')-3, 2) == '..' return "\<bs>\<bs>\\cdots" else return '.' --- 308,318 ---- 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 '.' |