[Vim-latex-cvs] vimfiles/ftplugin/latex-suite main.vim,1.11,1.12
Brought to you by:
srinathava,
tmaas
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 |