On Wed, Jun 3, 2009 at 2:29 AM, Gary Johnson <[email protected]> wrote:
>
> On 2009-06-02, Edward Peschko wrote:
...
>> 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

Yes, I created the following file:
C:\Vim\vimfiles\after\ftplugin\qf.vim

" When the quickfix window is opened:
" Compiling, Greping, :copen and so on
" Create the q command to close the window
nnoremap <buffer> q :clo<cr>


I did the same thing for Help files:
C:\Vim\vimfiles\after\ftplugin\help.vim

HTH,
Dave

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

Reply via email to