This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [cygwin tips&tricks] Shortcut to vim in "Send to" folder


Resending a copy since the previous one was apparently silently dropped by
the SPAM filter.  Apologies in advance if both make it through.

On Fri, 30 Jul 2004, Igor Pechtchanski wrote:

> [snip] ... It also showed me a way to properly implement "vi.bat" and
> "vimdiff.bat" (attached) which allow one to invoke "vi file [files]" or
> "vimdiff file1 file2 [files...]" from a DOS prompt.

Hmm, apparently just saying that the files are attached doesn't make my
mail client actually attach them...  Who knew?

A few additions to the above:
- turns out I also had a "view.bat" (attached as well)
- there's no need to make the .bat files executable -- CMD doesn't care,
  and Cygwin won't be confused that way
- the way they are written now, they'll only work with CMD.EXE (i.e., not
  on Win9x/ME) -- I have yet to find a way to do what needs to be done
  using command.com's retarded command set

Hope this helps someone,
	Igor
P.S. In the hopes to get this past the SPAM filter, the files are named
.batch instead of .bat.  Just rename after downloading.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

Attachment: vi.batch
Description: Text document

Attachment: view.batch
Description: Text document

Attachment: vimdiff.batch
Description: Text document

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]