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

RE: gf without buffer lost

Expand Messages
  • Suresh Govindachar
    marc chantreux Sent: February 27, 2006 2:08 AM ... Perhaps what you are looking for is in :help split So the mapping to use might be :map sgf :split
    Message 1 of 4 , Feb 27, 2006
      marc chantreux Sent: February 27, 2006 2:08 AM

      > i would like to use vim as kinda file selector:
      >
      > grep -rl pattern | vim -
      >
      > but gf doesn't work here because i can't save - has no name.
      > So i remap
      >
      > :map gf :e! <cfile><cr>
      >
      > now, i can open my file but i loose my filelist. Is there a way
      > to tell vim to don't close the buffer? Yes, i can write a little
      > script but hope that there is something easier (just set an
      > option i missed reading the doc.).

      Perhaps what you are looking for is in :help split
      So the mapping to use might be :map sgf :split <cfile><cr>

      --Suresh
    Your message has been successfully submitted and would be delivered to recipients shortly.