[Vim-latex-cvs] vimfiles/plugin imaps.vim,1.6,1.7
Brought to you by:
srinathava,
tmaas
From: <ma...@us...> - 2002-12-06 16:20:21
|
Update of /cvsroot/vim-latex/vimfiles/plugin In directory sc8-pr-cvs1:/tmp/cvs-serv31150/plugin Modified Files: imaps.vim Log Message: Oops: my previous commit was the wrong version of the file. This one should work. Index: imaps.vim =================================================================== RCS file: /cvsroot/vim-latex/vimfiles/plugin/imaps.vim,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** imaps.vim 2 Dec 2002 13:09:16 -0000 1.6 --- imaps.vim 6 Dec 2002 16:20:00 -0000 1.7 *************** *** 314,318 **** elseif fc == 0 let initial = "" ! let movement = "\<C-\>\<C-N>?ä\<cr>:call SAImaps_RemoveLastHistoryItem()\<cr>s" " however, if its somewhere in the middle, then we need to go back to the --- 314,318 ---- elseif fc == 0 let initial = "" ! let movement = "\<C-\>\<C-N>?ä\<cr>" . s:RemoveLastHistoryItem . "\<cr>s" " however, if its somewhere in the middle, then we need to go back to the *************** *** 331,338 **** " we needed 2 searches to get here. remove them from the search " history. ! let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" ! " BNF 12 Nov 2002: Functions never add more than one item to the searcg ! " history. ! " let movement = movement.":call SAImaps_RemoveLastHistoryItem()\<cr>" " if its a ä or «», then just delete it --- 331,335 ---- " we needed 2 searches to get here. remove them from the search " history. ! let movement = movement . s:RemoveLastHistoryItem . "\<cr>" " if its a ä or «», then just delete it *************** *** 469,473 **** let @r = _r " and finally, this is to restore the search history. ! call SAImaps_RemoveLastHistoryItem() else --- 466,470 ---- let @r = _r " and finally, this is to restore the search history. ! execute s:RemoveLastHistoryItem else *************** *** 554,564 **** " }}} ! " SAImaps_RemoveLastHistoryItem: removes last search item from search history {{{ ! " Description: This function needs to be globally visible because its ! " called from outside the script during expansion. ! function! SAImaps_RemoveLastHistoryItem() ! call histdel("/", -1) ! let @/ = histget("/", -1) ! endfunction " }}} --- 551,557 ---- " }}} ! " s:RemoveLastHistoryItem: removes last search item from search history {{{ ! " Description: Execute this string to clean up the search history. ! let s:RemoveLastHistoryItem = ':call histdel("/", -1)|let @/=histget("/", -1)' " }}} |