Friday, August 26, 2011

Re: Autocommand event for new buffers including startup buffer

On 25/08/11 23:03, Taylor Hedberg wrote:
> Ben Fritz, Thu 2011-08-25 @ 13:41:20-0700:
>> Does BufEnter work?
>>
>> autocmd BufEnter * if !exists('b:created') | let b:created = 1 | let
>> b:loaded_delimitMate = 1 | endif
>
> Yeah, in retrospect, that would probably do it. But I've fixed it
> another way now, so I'm not going to bother.

That would probably do it, at the cost of testing the condition at every
buffer switch. I think fixing the script (but not in $VIMRUNTIME) and
sending a diff to the maintainer is the way to go.

>
>
>> On the other hand, this is probably something to send to the plugin
>> author as a feature addition.
>
> Way ahead of you there. :) I forked the plugin on Github and sent him my
> new option as a pull request.
>
>
> Thanks for your suggestions.
>

Best regards,
Tony.
--
Johnson's First Law:
When any mechanical contrivance fails, it will do so at the
most inconvenient possible time.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment