[Vim-latex-devel] Re: [Vim-latex-cvs] vimfiles/plugin imaps.vim,1.7,1.8
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2002-12-08 17:07:19
|
sri...@us... wrote: > Update of /cvsroot/vim-latex/vimfiles/plugin > In directory sc8-pr-cvs1:/tmp/cvs-serv31595 >=20 > Modified Files: > imaps.vim=20 > Log Message: [snip] >=20 > If only someone had told me at the beginning not to use ascii > 127 > characters!! I think in the next major rev, we will have to undertake a > major overhaul of all the macros to not use any of the higher ascii > characters. Maybe modify IMAP() to allow for multiple character placeho= lder > characters... (maybe '{+' and '+}' like in cream). [snip] Srinath et al: I wish I had thought of this before you did a lot of work on=20 changing the 'encoding' settings. I think there is a much simpler=20 solution to this problem: stick with standard keyboard characters.=20 Instead of a line like let text =3D substitute(text, '=BB', phe, 'g') from plugin/imaps.vim, use let text =3D substitute(text, "\xbb", phe, 'g') I think this should have identical results. Another option, when using=20 a string that is going to be used in Input mode (typically the return=20 value of Function() in a construction like :imap <key> <c-r>=3DFunction()= )=20 is to try "\<C-K>>>". This would need testing. I will try this tomorrow, unless someone wants to do it first. A=20 few questions: * Are there any files other than plugin/imaps.vim that need this sort of=20 change? * Are there any recent changes to 'encoding' etc. that should be undone=20 if this works? --Benji |