RE: gf without buffer lost
- marc chantreux Sent: February 27, 2006 2:08 AM
> i would like to use vim as kinda file selector:Perhaps what you are looking for is in :help split
> 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.).
So the mapping to use might be :map sgf :split <cfile><cr>