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

95373Re: List all files in a directory tree to the buffer

Expand Messages
  • Anton Sharonov
    Sep 2, 2008
    • 0 Attachment
      > or rather

      > if !has('unix')
      > let $PATH .= ';C:\cygwin\bin'
      > endif

      > If you run a Cygwin version of Vim it should already find /bin in the
      > $PATH (it wouldn't understand C:\cygwin\bin). Single quotes avoid the
      > need to escape backslashes;

      Just minor improvement suggestion:
      You can of course test has('unix') to detect cygwin vim, if you don't
      need to distinguish between unix and cygwin. But
      better approach IMHO is:

      if ! has ("win32unix") " it is cygwin env.
      ...
      endif

      (Can be useful if one
      have some stuff, which must be defined only for cygwin environment but
      not for "real" UNIXes)

      --
      Mit freundlichen Grüßen
      Anton Sharonov
      mailto:anton.sharonov@...


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 17 messages in this topic