On 15/07/09 23:59, Nathan Neff wrote:
>
> Hello,
>
> Is there a way to display errors in the Quickfix window
> without jumping the cursor to the file?
>
> In other words, let's say I have 3 errors in my Quickfix window:
>
> file1:error1
> file2:error2
> file3:error3
>
> I'd like to place the cursor on line 2 in the Quickfix window, and press some
> kind of key to open a new "preview" window that shows file2 -- except the
> cursor stays in the Quickfix window on line 2.
>
> I could code a function to do this, but wanted to first check if I'm not 
> missing
> a built-in feature.  I checked :help quickfix, but couldn't find a command 
> that
> fits.
>
> Thanks,
> --Nate

Untested: put in your vimrc:

if has('autocmd') && has('quickfix')
        au BufWinEnter if &l:buftype == 'quickfix'
                \ | exe 'map <buffer> <F4> <CR><C-W>p'
                \ | endif
endif

Then F4 in a quickfix window ought to do what you're asking for.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
76. Your ISP regards you as a business partner rather than as a customer.

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

Reply via email to