On 2009-06-02, Edward Peschko wrote:
> > I'm not sure I understand what you're trying to do, but why are you
> > using <C-w>w to get back to the quickfix window, instead of using
> > :copen ?  Seems like the former will fail in multiwindow layouts, and
> > the latter won't.
> 
> Matt,
> 
> Good point, that works a lot better.. Still, I'd need a way to make
> conditional mappings (ie: j nmaps to :copen<CR>j, but only in quickfix
> windows.

The file type associated with quickfix windows is "qf", so you could
create a filetype plugin, qf.vim, and put there mappings like this
(untested):

    nnoremap <buffer> j :copen<CR>j

See

    :help :map-<buffer>

Regards,
Gary



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to