sjbach / lusty

LustyExplorer / LustyJuggler for Vim
http://www.vim.org/scripts/script.php?script_id=1890
257 stars 30 forks source link

Lusty Juggler breaking delimitmate #40

Closed hameedullah closed 12 years ago

hameedullah commented 13 years ago

I have been using delimitMate for quite sometime. Recently I found about lusty juggler and I find it really easy to get most recently used buffers and switch between them. So I started using lusty juggler and found strange issues with delimitMate.

I reported them to delimitMate maintainer and he said, "The problem is that lusty-juggler changes the mapping for its own use and then tries to restore the previous mapping, but that's not reliable and causes problems because lusty-juggler uses :inoremap and delimitMate needs :imap in those cases."

For reference you can see: https://github.com/Raimondi/delimitMate/issues/62

I haven't been able to get time out to look into myself and submit the fix, so I thought I should report here so someone might be able to get it fixed before me and everyone can benefit. I wonder if there are other users who use lusty with delimitMate.

sjbach commented 13 years ago

Hi, I just commented on the issue you reference, but to repeat: there's a bug in Vim having to do with saving/restoring of mappings; check the patch version of your Vim, and if it's below 32, try upgrading to a newer version to see if that makes the problem go away.

hameedullah commented 13 years ago

You are right I was using Vim 7.2. but now I have installed Vim 7.3 and now I seem to have a different issue. I changed nothing except I just installed Vim 7.3. When ever I do :LustyJuggler I get a message No other buffers.

Here is my current vim --version

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 12 2011 23:38:07) Included patches: 1-35

sjbach commented 13 years ago

You have terrible luck! ;-) This is another bug in Vim introduced in early 7.3. See this for background:

https://github.com/sjbach/lusty/issues/35

Basically, you need a still newer version of Vim; for reference, my patch level is 1-162.

hameedullah commented 13 years ago

Thanks man for the quick reply. I had already started looking for other script that provides lust-juggler like switching. I will now try to further upgrade vim and will let you know how it goes.

sjbach commented 13 years ago

Good luck. I don't blame you if you decide it's too much trouble - upgrading your editor twice just to try a plugin is a lot of hassle.

hameedullah commented 13 years ago

But for me Lusty-Juggler is worth the trouble. Though I don't use much the explorer, but juggler is something I very frequently use.

hameedullah commented 13 years ago

I am now on patch level 154, and I noticed the same issue that I had earlier. But this time the text was inserted was different. I am not yet able to reproduce the issue, I will submit more details here as soon as I am able to reproduce it.

sjbach commented 12 years ago

Should be fixed now.