delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/12/23:00:24

From: earnie_boyd AT yahoo DOT com (Earnie Boyd)
Subject: function vi {...
12 Nov 1998 23:00:24 -0800 :
Message-ID: <19981112143628.10092.rocketmail.cygnus.gnu-win32@send106.yahoomail.com>
Reply-To: earnie_boyd AT yahoo DOT com
Mime-Version: 1.0
To: cygwin users <gnu-win32 AT cygnus DOT com>

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.

==
-                  \\||//
-------------o0O0--Earnie--0O0o--------------
--          earnie_boyd AT yahoo DOT com          --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019