function vi {...

Pierre A. Humblet Pierre.Humblet@eurecom.fr
Fri Nov 13 07:40:00 GMT 1998


At 06:36 AM 11/12/98 -0800, Earnie Boyd wrote:
>I thought I would share this nice function you can put into your
>.bashrc file.
>Note, this will only benefit those using the win32 native version of
>vim.exe.
>
>function vi {
>  VIMFILES=;
>  for FILE;
>  do VIMFILES="$VIMFILES `cygpath -w $FILE`";
>  done;
>  vim $VIMFILES;
>}
>
>CAUTION:
>Do not name the function vim and do not alias vim=vi.  If you do
>either you'll create a circular reference which doesn't resolve.
>
A way around the CAUTION is to write "command vim $VIMFILES;",
which will pick up the command and not the function.

Pierre
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list