Loading ...
Sorry, an error occurred while loading the content.

93810Re: Quickfix question

Expand Messages
  • David Gordon
    Aug 1 12:02 PM
    • 0 Attachment
      Thanks everyone for the tips!

      On Jul 31, 12:32 pm, "Benjamin Fritz" <fritzophre...@...> wrote:
      > On Thu, Jul 31, 2008 at 2:17 PM, sc <tooth...@...> wrote:
      >
      > > On Thursday 31 July 2008 13:18, David Gordon wrote:
      >
      > >> Hi Folks,
      >
      > >> I am almost in vim heaven, just one or two things in my way.
      >
      > >> Does anybody know how to stop the quickfix functionality from jumping
      > >> to the first result when the quickfix window is updated.
      >
      > >> E.g. if I do :grep it instantly opens up the first result, when I'd
      > >> rather browse the list and choose a file, or sometimes even just look
      > >> at the results without opening anything.
      >
      > >> Also: after the buffer in a given window has been switched, is there a
      > >> command to change back to whatever was there before. I.e. NOT the
      > >> previously numbered buffer, but the previously opened buffer, like a
      > >> browser back button.
      >
      > >> thanks,
      >
      > > i can handle the 2nd question, it's easy:
      >
      > > Ctrl-6, (same as Ctrl-^) is shorthand for :e# -- it takes
      > > you to the "#" buffer, which is the one you were in
      > > immediately prior to the one you are in
      >
      > > it's one of the most useful key combinations you can learn
      >
      > > hth,
      >
      > > sc
      >
      > Also try CTRL-O (and CTRL-I to go forward). These commands go back and
      > forth in the "jump list," also handy for navigating by tags.
      >
      > For the first question, from :help :grep:
      >
      > "Just like ":make", but use 'grepprg' instead of 'makeprg'..."
      >
      > So, from :help :make:
      >
      > "If [!] is not given the first error is jumped to."
      >
      > For :grep, then...use :grep! instead, and you won't jump to the first
      > result. Same for :make, just add a bang(!).
      >
      > :vimgrep is different, and you need to pass a "j" flag to the search,
      > like :vimgrep /abc/j
      >
      > In general, if the command allows you to not jump, it will tell you
      > how in the help.
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 7 messages in this topic