95379Re: List all files in a directory tree to the buffer
- Sep 2, 2008On 02/09/08 09:34, Anton Sharonov wrote:
>> or ratherIf you use double-boot, with Windows (g)vim and Cygwin vim on the W32
>> if !has('unix')
>> let $PATH .= ';C:\cygwin\bin'
>> 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.
> (Can be useful if one
> have some stuff, which must be defined only for cygwin environment but
> not for "real" UNIXes)
system, plus, let's say, GTK2 gvim on the Linux system, you should still
use has('unix') in this case because you don't want to add Windows paths
when using _either_ Cygwin Vim or Linux Vim.
In my experience, has('win32unix') is only very rarely needed (I'm not
saying 'never'), because Cygwin Vim (when called from Cygwin bash)
behaves almost identically to other Unix-like versions of Vim.
Time flies like an arrow
Fruit flies like a banana
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>