开发者

how do you set autogroup triggers on no file buffers?

I'm using a plugin which always creates a buffer named "[Scratch]" whenever I use omnicomplete. I want to hide this. I tried doing this:

au BufNew [Scratch] bunload

However, this never gets triggered. I believe that is because the pattern is matching against the filename and not the buffer name. Is there a way to to change this behavior?

EDIT:

Never mind, the option I wanted was

set completeopt = menu,menuone,longest

This gets rid of the scra开发者_C百科tch buffer.


This looks like the wrong approach.

Instead I'll look into the (omnicomplete?) plugin you are using to see if there is an option to disable the creation of that scratch buffer. If not, contact the plugin's author to ask him to add this option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜