[Vim-latex-cvs] vimfiles/ftplugin/tex smartspace.vim,1.4,1.5
Brought to you by:
srinathava,
tmaas
From: <sri...@us...> - 2003-01-05 04:50:49
|
Update of /cvsroot/vim-latex/vimfiles/ftplugin/tex In directory sc8-pr-cvs1:/tmp/cvs-serv28312 Modified Files: smartspace.vim Log Message: Bug fix from Carl Mueller. Bug: Reformatting is not done when <space> is pressed at the end of a line like: $aaaaaa.......$ asdf where there are say > &tw 'a's. In other words, reformatting isn't done outside the '$'s. Cause: Do not really know, should ask Carl Solution: Apparently the diff here... TODO: Still one more bug. Pressing <space> in the position $aaaaaaaa.........................aaa $ asdf ^ shown makes new lines appear after this line. Index: smartspace.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/ftplugin/tex/smartspace.vim,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** smartspace.vim 3 Jan 2003 23:08:13 -0000 1.4 --- smartspace.vim 5 Jan 2003 04:50:46 -0000 1.5 *************** *** 3,7 **** " Author: Carl Muller " Created: Fri Dec 06 12:00 AM 2002 PST ! " Last Change: Fri Jan 03 03:00 PM 2003 PST " " Description: --- 3,7 ---- " Author: Carl Muller " Created: Fri Dec 06 12:00 AM 2002 PST ! " Last Change: Sat Jan 04 12:00 AM 2003 PST " " Description: *************** *** 87,90 **** --- 87,93 ---- let length = col(".") endwhile + if go == 0 && match(getline("."), '.*\$.*\$.*') != -1 + exe "normal $F$wi\<CR>\<Esc>" + endif endfunction |