On Mon, May 14, 2012 at 1:34 PM, Jonathan del Strother <[email protected]> wrote: > > Hi, > I'm using fugitive's :Ggrep (a git-based wrapper around vimgrep) to > scan for occurrences of a word in my project, viewing them in the > quickfix window. I end up with quite a few results, and it's not > obvious which file I'm interested in without opening the file. When I > hit enter in the quickfix window, it opens that file and moves the > cursor focus to the new buffer. Is it possible to keep the focus in > the quickfix window, so I can just hit enter, realise it's not the > file I'm looking for, hit down/enter, and repeat? You can map the <CR> key? E.g:
:noremap <CR> <CR><C-W><C-P> Or, :noremap <CR> <CR><C-W><C-P>j (saves one more keystroke). Better to put that in autocmd for filetype as 'qf'. (disclaimer: works for quickfix, haven't used :Ggrep). -- 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
