delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/25/00:13:49

From: fredex AT fcshome DOT stoneham DOT ma DOT us
Message-Id: <199606241632.MAA00858@fcshome.stoneham.ma.us>
Subject: Re: Editor people use with DJGPP??
To: cesar DOT da DOT silva AT abc DOT se (Cesar da Silva)
Date: Mon, 24 Jun 1996 12:32:07 -0400 (EDT)
Cc: djgpp AT delorie DOT com
In-Reply-To: <31ca0120.44036922@news.abc.se> from "Cesar da Silva" at Jun 21, 96 02:01:45 am

Thinking furiously, Cesar da Silva wrote:
> 
> Which DOS editor do people use with DJGPP. Please don't mention EMACS.
> I want an editor that can run gcc and understand the error messages,
> and jump to the line that gcc says is incorrect. Is there any such
> editor for DOS or Windows?
> 

While I haven't been using DJGPP for very long, being an old unix-head,
I tend to want a vi-like editor wherever possible. My current favorite
is Elvis 2.0(beta).

Among many other useful features, Elvis 2.0 can launch either a compiler,
or make, and can parse the resulting error messages and take your cursor
to the line named in the error message. 

This capability is controlled by some option settings in Elvis. To cause
Elvis to do this when compiling in DOS with DJGPP, you would give it
the following command:

	se ccprg="gcc -c -O ($1?$1:$2)"

thereafter, when you save the current .c file (by doing :w), you can
subsequently type:
	
	:cc

and it will spawn gcc on the current file, and if errors/warnings occur
the cursor will go to the line of the first one. You can go to the 
subsequent lines by using the :errlist command.

But I must admit that vi is an acquired taste, and if you haven't
acquired it you won't want to try it this way.

But you DID ask what we use! :-}

Fred
-- 
-------------------------------------------------------------------------------
 .----    Fred Smith    /                        Office: fred AT computrition DOT com 
( /__  ,__.   __   __ /  __   : /                                 508-663-2524 
 /    /  /   /__) /  /  /__) .+'           Home: fredex AT fcshome DOT stoneham DOT ma DOT us 
/    /  (__ (___ (__(_ (___ / :__                                 617-438-5471 
-------------------------------- Jude 1:24,25 ---------------------------------

- Raw text -


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