>
>
> On Jan 30, 9:06 am, Marcin Szamotulski <msza...@gmail.com> wrote:
> > Hello,
> >
> > I'd like to make an autocommand which executes cgetfile with BufEnter, but not
> > when going from QuickFix (:copen) window. Any ideas how to do that?
> >
>
> You could use a BufLeave/WinLeave autocmd to set some variable if
> &buftype='quickfix' (or perhaps if &filetype='qf', but the former is
> probably better). In your BufEnter autocmd, check to see whether the
> variable is set and if so, don't run cgetfile. Always clear the
> variable on BufEnter after the check.
>
> That's how I'd try it first, anyway. There may be a better way.
>
> --
> 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
Thanks, this is indeed what I was looking for.
Best,
Marcin
--
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