Re: [cream] Extra buffer created when file opened with cream --remote-send
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Ben A. <BAr...@dy...> - 2007-08-23 11:21:25
|
Ben Armstrong wrote: >> I think this may be Vim working in the background. All sorts of unamed >> buffers are created in practice, Cream can usually delete them or >> avoid creating new ones via various autocmds. But when you pass an >> argument in from an outside application, Vim acts before Cream and we >> get a slightly dis-organized environment. Window > Tabs > Refresh Tabs >> should usually fix this. >> > > That does nothing in my case. > In fact, this morning when I was trying to debug Peter's report to me that while he sees the first and second tabs, opening a third file does not create a third tab, but merely replaces the one on top, I tried "Refresh Tabs" after the third open to see what would happen. Lo and behold, two empty "Untitled" tabs appeared! So I guess these extra buffers are being created all the time. We just don't normally see them. You may recall that in our cream-user.vim we have an 'after open' hook set up to create a lockfile for selected files being edited. When I comment out in the hook the call to "Cream_touch()" so that the lockfile isn't created, both problems go away! So I need some ideas about how we can still create the lock file without causing these problems. Any clues? Ben |