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

Re: Using gf with a modified filename

Expand Messages
  • Douglas L Potts
    ... [--- snip ---] ... As is almost anything else with VIM, ... of course. Depending on your Vim flavor (6.0 or 5.8 and below): vim 6.0 - has suffixesadd, to
    Message 1 of 4 , Jun 1, 2001
    • 0 Attachment
      On Fri, Jun 01, 2001 at 10:18:19AM -0400 Ondrejko, David wrote:
      >
      > Vimmers,
      [--- snip ---]
      > So I would like to know how to make gf (and similar commands, if possible)
      > automagically add a ".cpy" extension to the filename whenever I use it, and
      > still search the "path" variable.
      >
      > Is that possible?
      As is almost anything else with VIM, ... of course.

      Depending on your Vim flavor (6.0 or 5.8 and below):
      vim 6.0 - has suffixesadd, to add your .cpy to the end.

      vim 5.8 to 5.4 (need the sfind comto 5.4):
      there is a function that Stefan Roemer posted back in June 99 called
      FindFile that you add your .cpy extensions to the 'ext' variable in the
      function. And then gf and the like get mapped to call this function
      with the correct parameters.

      You should be able to drudge this up on egroups (now yahoo groups I
      think), or if you need it I can email it, or it is on my vim macros page
      on my web page (see url below).

      HTH,
      -Doug

      --
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
      Douglas L. Potts Url: http://www.bigfoot.com/~pottsdl
      "Debating unix flavors in the context of anything Microsoft is like talking
      about which ice cream flavor tastes least like sawdust with turpentine sauce."
      --(void) in alt.sysadmin.recovery
      *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
    Your message has been successfully submitted and would be delivered to recipients shortly.