[Vim-latex-cvs] vimfiles/plugin imaps.vim,1.4,1.5
Brought to you by:
srinathava,
tmaas
From: <ma...@us...> - 2002-11-12 18:24:05
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory usw-pr-cvs1:/tmp/cvs-serv2787 Modified Files: imaps.vim Log Message: I fixed a problem where using $$ (for example) would trash the search history. I commented out a line, and added a comment, in case this depends on version and patch number of vim; I think this should work with vim any vim 6.0+. Please test. If this change is correct, it should be possible to simplify the code a bit. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** imaps.vim 4 Nov 2002 22:22:55 -0000 1.4 --- imaps.vim 12 Nov 2002 18:24:01 -0000 1.5 *************** *** 190,195 **** " This function performs a reverse lookup when this character is typed in. It " loops over all the possible left-hand side variables ending in this ! " character and then if a possible match exists, ereases the left-hand side ! " and inserts the right hand side instead. function! <SID>LookupCharacter(char) let charHash = char2nr(a:char) --- 190,195 ---- " This function performs a reverse lookup when this character is typed in. It " loops over all the possible left-hand side variables ending in this ! " character and then if a possible match exists, erases the left-hand side ! " and inserts the right-hand side instead. function! <SID>LookupCharacter(char) let charHash = char2nr(a:char) *************** *** 329,333 **** " history. let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" ! let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" " if its a ä or «», then just delete it --- 329,335 ---- " history. let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" ! " BNF 12 Nov 2002: Functions never add more than one item to the searcg ! " history. I do not recall where this is documented... ! " let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" " if its a ä or «», then just delete it |