Re: [Vim-latex-devel] Re: Bug in vim-latex
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2003-01-30 19:31:02
|
I see that messages from the list now have a Reply-To line. Much better! Srinath Avadhanula wrote: > Hello, > > I could reproduce the problem. It looks like > :behave mswin > sets 'selection' to exclusive which breaks imaps.vim. If I put > :set selection=inclusive > at the end of the .vimrc, it works... Thats a short term solution. In > the long term, we'll make imaps.vim work with this option. I still > haven't looked at the selection problem, but I suspect thats due to > 'incrsearch'... Good: at least that one is diagnosed. > Also, we've got a serious potential problem. imaps.vim breaks iabs. > (Preben reported this, and I suspect a user who reported that > :iab 12 twelve > didn't work for him also has the same problem). I tried this, and it worked as expected. Either that other user has addded an IMAP (ending in "1" or "2") or something else is causing the problem. The reason I rushed to answer is that I, too, thought it might be an IMAP problem ... > I haven't thought about how to take care of this problem... If it were > a map, we could have used Charles Campbell's SaveMaps() strategy, but > I do not know of an equivalent set up with abbreviations... Ofcourse, we > should in the meanwhile, put up a warning in bright red somewhere saying > that people who use latex-suite better use IMAP() instead of iab... Does > anyone know of something like hasabto()? I think there are three parts to the solution: (1) As you say, document it. (2) Advise users to replace :iab's with IMAP()'s if they are going to use imaps.vim . This is the advice I gave Preben. (3) Make the map that calls IMAP_LookupCharacter() buffer-local. I already tried this, but I did not realize that IMAP() was being called only once. The hard part will be calling IMAP() on every FileType tex event (or another autocommand that Latex Suite sets up). The point of (3) is that Latex Suite should not be too intrusive for non-tex files. If the user chooses to use imaps.vim for other file types, (s)he will have to follow Point (2) for those as well; if not, the only changes needed will be for tex files. --Benji |