For Programmers: Free Programming Magazines  


Home > Archive > Fortran > October 2004 > Which Fortran editor do you prefer to work with, in Linux?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Which Fortran editor do you prefer to work with, in Linux?
Angelo

2004-10-19, 9:05 am

I am aware of several free (for research purposes) fortran 95
compilers for use in Linux, such as Intel or g95. I am interested to
know, if any free editor exists in Linux and which do you prefer to
work with.

Thanks in advance for your comments.
TimC

2004-10-19, 9:05 am

On Tue, 19 Oct 2004 at 10:11 GMT, Angelo (aka Bruce)
was almost, but not quite, entirely unlike tea:
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.
>
> Thanks in advance for your comments.


XEmacs. Although if I was starting from scratch, and didn't have my
148kb of init files investment, I'd probably recommend Emacs
instead. Most elisp developers aim their stuff at Emacs, because it's
the Free-er of the two.

--
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
Ws of coding can save you hours of planning. --unk
Helge Avlesen

2004-10-19, 9:05 am

asifaleras@hotmail.com (Angelo) writes:

| I am aware of several free (for research purposes) fortran 95
| compilers for use in Linux, such as Intel or g95. I am interested to
| know, if any free editor exists in Linux and which do you prefer to
| work with.

GNU emacs is nice. not the most «beginner friendly» editor, but after
you have got the main keystrokes in your fingers, and massage .emacs a
little, it is hard to beat. appended some of my personal .emacs
settings for fortran as an example. (e.g how to make emacs parse g95's
error messages)

Emacs can syntax highlight your code, let you invoke the compiler (M-x
compile RET) and automatically place the cursor on the line with an
error in the right file. a good interface for grep (M-x grep RET).
automatic upcasing of keywords if you like that. features like this
excist not only for fortran, but also python, matlab, C, C++, ... (you
may have to download packages for python and matlab support)

Emacs also supports comp.lang.fortran! (M-x gnus)

Helge




;; fortran mode. for info open a fortran file, and do "C-h m".
;; put the cursor on a variable name and do "C-h v" to see a
;; description of the variable

(add-hook 'fortran-mode-hook
(function (lambda ()
(local-set-key (kbd "C-m") 'fortran-indent-new-line)
(local-set-key (kbd "C-j") 'newline)
(fortran-auto-fill-mode 1)
(abbrev-mode 1)
(column-number-mode 1)
(setq fortran-comment-region "c ")
(setq fortran-comment-indent-style 'relative)
) ) )

;; identify all files ending with .F as Fortran 77
(setq auto-mode-alist
(cons '("\\.F$" . fortran-mode) auto-mode-alist))

(add-hook 'f90-mode-hook
(function (lambda ()
(setq indent-tabs-mode nil)
;; (setq f90-break-delimiters "[\\*/= \t]")
(setq f90-indented-comment-re "!")
(setq f90-beginning-ampersand nil)
(local-set-key (kbd "C-m") 'f90-indent-new-line)
(local-set-key (kbd "C-j") 'newline)
(local-set-key (kbd "M-RET") 'f90-break-line)
(setq f90-smart-end 'no-blink)
;; (auto-fill-mode 1)
(setq f90-comment-region "! ")
;; (setq f90-directive-comment-re "!$\\(omp\\|OMP\\)")
(setq f90-do-indent 4)
(setq f90-if-indent 4)
;; (abbrev-mode 1)
(column-number-mode 1)
;; (setq f90-auto-keyword-case 'upcase-word)
(setq truncate-lines t)
)) )

;; all files ending with .F90 are fortran 90 files:
(setq auto-mode-alist
(cons '("\\.F90$" . f90-mode) auto-mode-alist))

;; make emacs grok g95 error messages: (can now jump to the right line)

(eval-after-load "compile"
'(setq compilation-error-regexp-alist
(cons '("^In file \\(.+\\):\\([0-9]+\\)" 1 2)
compilation-error-regexp-alist)))
Gareth Owen

2004-10-19, 3:58 pm

Helge Avlesen <avle@ii.uib.no> writes:

> appended some of my personal .emacs settings for fortran as an example. (e.g
> how to make emacs parse g95's error messages)


Does anyone have the equivalent for Intel ifort?
--
Gareth Owen
Helge Avlesen

2004-10-19, 3:58 pm

Gareth Owen <usenet@gwowen.freeserve.co.uk> writes:

| > appended some of my personal .emacs settings for fortran as an example. (e.g
| > how to make emacs parse g95's error messages)
|
| Does anyone have the equivalent for Intel ifort?

that works by default(at least for me...) with GNU emacs 21.3

Helge
John C. Bollinger

2004-10-19, 3:58 pm

Angelo wrote:
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.
>
> Thanks in advance for your comments.


I use ViM for just about everything on Linux, including editing source
code in several languages, including Fortran. For that matter, I prefer
use ViM for most purposes on Windows, too.


John Bollinger
jobollin@indiana.edu
Arnaud Desitter

2004-10-19, 3:58 pm


"Gareth Owen" <usenet@gwowen.freeserve.co.uk> wrote in message
news:r5iy8i27tf8.fsf@gill.maths.keele.ac.uk...
> Helge Avlesen <avle@ii.uib.no> writes:
>
>
> Does anyone have the equivalent for Intel ifort?
> --
> Gareth Owen


I use:
;; For ifort
(setq compilation-error-regexp-alist
(append compilation-error-regexp-alist
'(("^[A-Za-z ]+[:][A-Za-z ]+[:] \\([^.]+[.][a-zA-Z0-9]+\\), line
\\([0-9]+\\)[:]"
1 2))))

Regards,


Madhusudan Singh

2004-10-19, 3:58 pm

Angelo wrote:

> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.
>
> Thanks in advance for your comments.


emacs
Mike Walters

2004-10-20, 3:56 am

Angelo wrote:
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.
>
> Thanks in advance for your comments.



GNU Emacs, hands down.

There is also a Windows version available.


--

"Well, I think if you say you're going to do something and don't do it,
that's trustworthiness."

- George W. Bush, Aug. 30, 2000

Angelo

2004-10-20, 8:57 pm

I use Compaq Visual Fortran in Windows, which I personally think it is
a very good choice as a programming environment. Is any other similar
application, freeware for research purposes, available in Linux? I
know that Absoft and Lahey / Fujitsu have also developed sophisticated
programming applications, but not freeware.

However, I noticed that most of the people use XEmacs. I am just
asking if there exists a more friendly, but also efficient, freeware
for research purposes, Fortran programming application, (www.nedit.org
? ).

Thanks a lot in advance for your comments.
Athanasios Migdalas

2004-10-20, 8:57 pm

Angelo wrote:

>
> I use Compaq Visual Fortran in Windows, which I personally think it is
> a very good choice as a programming environment. Is any other similar
> application, freeware for research purposes, available in Linux? I
> know that Absoft and Lahey / Fujitsu have also developed sophisticated
> programming applications, but not freeware.
>
> However, I noticed that most of the people use XEmacs. I am just
> asking if there exists a more friendly, but also efficient, freeware
> for research purposes, Fortran programming application, (www.nedit.org
> ? ).
>
> Thanks a lot in advance for your comments.


More efficient than (x-)emacs? How many of the other environments can
automatically complete your fortran isntructions or subprograms?
Friendliness is relatively subjective ... I prefer (X-)Emacs although I do
posses the Lahey/Fujitsu IDE and Wide. I still find (X-)Emacs friendlier to
me as a programmer.

/Sakis



Richard E Maine

2004-10-20, 8:57 pm

asifaleras@hotmail.com (Angelo) writes:

> However, I noticed that most of the people use XEmacs.


I'm one of those Xemacs users. But...

> I am just asking if there exists a more friendly,


I tend to be leary of the term "friendly" as a description because it
is so ill-defined. What seems friendly to one person isn't at all so
to another. Some people use "friendly" as a synonym for "has a
gui", no matter how "hostile" I happen to consider the particular
gui. I've used (not entirely at my choice) a gui editor where I had to
use literally several thousand clicks to do something that I could
have done with a global edit in maybe 2 dozen characters. My wrist
still hurts and that was over a decade ago (in preparing the f95
standard). :-( Other gui editors I do like, though.

> ...Fortran programming application, (www.nedit.org? ).


I don't quite understand the reference to www.nedit.org.
Are you asking something about it? Using it as an example
of what you consider a suitable environment?

On the off chance that you happen to be citing it as an example of
the kind of thing you are looking for, let me note that nedit *IS*
available in Linux. Might or might not be prepackaged with whatever
Linux distribution you prefer, but yes, it is available. Hey,
just today I was installing nedit on my Mac. I'm not a regular nedit
user, but I wanted it available on the system (and it is trivial
to install using fink, which I was playing with anyway, which is
why I happened to install nedit).

In RedHat 7.3, it is under Apps/editors (I didn't like my experiments
with redHat 8 and 9, so I don't know details for them). In SuSe 9.0,
it is in pproductivity/editors/other. It seemed to get dropped from
SuSe 9.1 for reasons unclear to me, but the rpm from SuSe 9.0 works.

--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
Scott Robert Ladd

2004-10-20, 8:57 pm

On Tue, 19 Oct 2004 03:11:03 -0700, Angelo wrote:
> I am aware of several free (for research purposes) fortran 95 compilers
> for use in Linux, such as Intel or g95. I am interested to know, if any
> free editor exists in Linux and which do you prefer to work with.


I'll go contrary to the consensus, and recommend NEdit
(http://www.nedit.org). It is available, standard, with most Linux
distributions (include Gentoo, Debian, and others).

The choice of editors is very personal; I can't stand emacs or vi myself,
but I certainly wouldn't berate anyone else for their choice. Try several,
and see which one feels best to you.

--
Scott Robert Ladd
site: http://www.coyotegulch.com
blog: http://chaoticcoyote.blogspot.com


Ryo Furue

2004-10-21, 8:57 am

Richard E Maine <nospam@see.signature> wrote in message news:<m1pt3duh7b.fsf@MLMCE0000L22801.local>...
> asifaleras@hotmail.com (Angelo) writes:
>
>
> I'm one of those Xemacs users. But...
>
>

[...]
> I've used (not entirely at my choice) a gui editor where I had to
> use literally several thousand clicks to do something that I could
> have done with a global edit in maybe 2 dozen characters. [...]


I'm kind of surprised at people's responses to the OP's question.
I expected that people would describe and recommend various IDEs
(short for "integrated development environments?). I myself use
emacs only and I've never used IDEs.

But, I always envy my wife about how she programs in Java.
Not that I like the language but that the IDEs she uses look
just fabulous (JBuilder and Eclips, if anybody's curious).
One of the best feature of the IDEs, I think, is that as you
type a subroutine call (method call in the Java terminology),
the IDE shows you the names and types of the arguments
in a small textbox which appears above or to the upper right
of the cursor. Also, as you type in the method name,
a cursor shows you candidates of possible names, and if
you like, you can choose the right one from the list.

According to my observation, she doesn't use the mouse while
she is writing a section of the program. These interpolation
features work with the keybord.

I sometimes use libraries written by other people and am annoyed
by the fact that I need to place the manual of the library on my
desk and consult it whenever I write a call to one of the
subroutines. I wish I could do something like this:

call nc_p<press tab key>
--> call nc_put_data(dat <tip appears: "data_id: INTEGER">
--> call nc_put_data(data_id = 3, <list of remaining arguments
appear>
and so on.

The best IDE feature I've ever seen is the debugger of Visual
Basic, which my wife was using before. You specify breakpoints
by clicks of the mouse on the source code and run the program.
The program stops at one of the breakponts. Then when you place
your mouse pointer on a variable, its value is shown in a baloon!

So, I wonder why Fortran people (including me) don't work like this.
Is it because there's no free comprehensive IDE? As I said, I've
never used an IDE; I just watch my wife programming. If there's a
free IDE like JBuilder and Eclips for Fortran, I'd definitely give
it a try. (JBuilder is free for personal use, I think.)

Cheers,
Ryo
Janne Blomqvist

2004-10-21, 8:57 am

NNTP-Posting-Host: imhotep.hut.fi
X-Trace: epityr.hut.fi 1098351529 10638 130.233.248.219 (21 Oct 2004 09:38:49 GMT)
X-Complaints-To: usenet@hut.fi
NNTP-Posting-Date: Thu, 21 Oct 2004 09:38:49 +0000 (UTC)
User-Agent: slrn/0.9.8.0 (Linux)
Xref: number1.nntp.dca.giganews.com comp.lang.fortran:124177

On 2004-10-21, Ryo Furue <furufuru@ccsr.u-tokyo.ac.jp> wrote:
> One of the best feature of the IDEs, I think, is that as you
> type a subroutine call (method call in the Java terminology),
> the IDE shows you the names and types of the arguments
> in a small textbox which appears above or to the upper right
> of the cursor. Also, as you type in the method name,
> a cursor shows you candidates of possible names, and if
> you like, you can choose the right one from the list.


Ah, yes. You mean something like ESC-/ and ESC-Ctrl-/ in (x)emacs?

> So, I wonder why Fortran people (including me) don't work like this.
> Is it because there's no free comprehensive IDE? As I said, I've
> never used an IDE; I just watch my wife programming. If there's a
> free IDE like JBuilder and Eclips for Fortran, I'd definitely give
> it a try. (JBuilder is free for personal use, I think.)


Eclipse is free for any use, IIRC. It has some support for C/C++,
python and lots of other languages via some kind of plugin system, but
AFAIK nobody has bothered to cook up a Fortran plugin (yet).


--
Janne Blomqvist
Gareth Owen

2004-10-21, 8:57 am

Janne Blomqvist <foo@bar.invalid> writes:

> On 2004-10-21, Ryo Furue <furufuru@ccsr.u-tokyo.ac.jp> wrote:
>
> Ah, yes. You mean something like ESC-/ and ESC-Ctrl-/ in (x)emacs?


A combination of that and M-x complete-tag
(or how complete-tag would work if emacs etags
had half-decent support for f95 syntax)
--
Gareth Owen
Erik Edelmann

2004-10-21, 4:03 pm

NNTP-Posting-Host: beam.acclab.helsinki.fi
X-Trace: oravannahka.helsinki.fi 1098364115 10611 128.214.7.3 (21 Oct 2004 13:08:35 GMT)
X-Complaints-To: abuse@helsinki.fi
NNTP-Posting-Date: 21 Oct 2004 13:08:35 GMT
User-Agent: slrn/0.9.7.4 (Linux)
Xref: number1.nntp.dca.giganews.com comp.lang.fortran:124181

First, to answer the original question that started this tread: I use vim
(http://vim.sourceforge.net/)

In article <e10cccdf.0410210026.30953550@posting.google.com>, Ryo Furue wrote:
> But, I always envy my wife about how she programs in Java.
> Not that I like the language but that the IDEs she uses look
> just fabulous (JBuilder and Eclips, if anybody's curious).
> One of the best feature of the IDEs, I think, is that as you
> type a subroutine call (method call in the Java terminology),
> the IDE shows you the names and types of the arguments
> in a small textbox which appears above or to the upper right
> of the cursor. Also, as you type in the method name,
> a cursor shows you candidates of possible names, and if
> you like, you can choose the right one from the list.
>
> According to my observation, she doesn't use the mouse while
> she is writing a section of the program. These interpolation
> features work with the keybord.
>
> I sometimes use libraries written by other people and am annoyed
> by the fact that I need to place the manual of the library on my
> desk and consult it whenever I write a call to one of the
> subroutines. I wish I could do something like this:
>
> call nc_p<press tab key>
> --> call nc_put_data(dat <tip appears: "data_id: INTEGER">
> --> call nc_put_data(data_id = 3, <list of remaining arguments
> appear>
> and so on.
>
> The best IDE feature I've ever seen is the debugger of Visual
> Basic, which my wife was using before. You specify breakpoints
> by clicks of the mouse on the source code and run the program.
> The program stops at one of the breakponts. Then when you place
> your mouse pointer on a variable, its value is shown in a baloon!
>
> So, I wonder why Fortran people (including me) don't work like this.


I do.

> Is it because there's no free comprehensive IDE?


The "IDE" I am using is the usual Linux(/Unix) user environment. It has

* Various debuggers. Using the graphical debugger frontend ddd
(http://www.gnu.org/software/ddd/), you get all the features of
the Visual Basic debugger you mention above.

* make, revision control systems, diff, patch, profilers, etc. etc.

* Perhaps most important for this thread: Text editors with lots
of nifty features (too many to be listed here).

At least the more advanced among these editors tend to interact
pretty well with other programming tools, providing you with an
really Integrated DE. (I do not claim that other IDEs would not
be integrated, I just point out that the Unix DE is.)

I do not know what alternatives exist for other operating systems, but Unix
(and Unix-like) systems have an IDE (for most programming languages,
including Fortran) more or less built in. You just need to know hoe to use
it. (However, I know that some people consider "knowing how to use it" to
be the hard part :-).


Erik
Pierre Asselin

2004-10-21, 4:03 pm

Angelo <asifaleras@hotmail.com> wrote:
> I use Compaq Visual Fortran in Windows, which I personally think it is
> a very good choice as a programming environment. Is any other similar
> application, freeware for research purposes, available in Linux? I
> know that Absoft and Lahey / Fujitsu have also developed sophisticated
> programming applications, but not freeware.


I don't use IDE's myself (unless you count Linux as an IDE) but
I've heard that Visual Studio users could launch KDevelop and feel
right at home. So, install any Linux distribution that has KDE.
Don't know if KDevelop does Fortran, though.

--
pa at panix dot com
Walter Spector

2004-10-21, 4:03 pm

Angelo wrote:
>
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.


Split about 50/50 between vi and nedit. I use these daily between IRIX,
Linux/Altix, and the cygwin/xfree86 environments.

I've redone my .nedit file a bit to do a better job of syntax highlighting
with modern Fortran. But can well imagine others have done more.
Anyone know of a really good set of Fortran defs for nedit that is publicly
available? Last time I looked, I only found one - and it had a lot of
deficiencies.

Walt
-...-
Walt Spector
(w6ws at earthlink dot net)
Ryo Furue

2004-10-21, 8:56 pm

Janne Blomqvist <foo@bar.invalid> wrote in message news:<slrncnf0t9.p5d.foo@imhotep.hut.fi>...
> On 2004-10-21, Ryo Furue <furufuru@ccsr.u-tokyo.ac.jp> wrote:
>
> Ah, yes. You mean something like ESC-/ and ESC-Ctrl-/ in (x)emacs?


I'm curious. How does emacs know the names of subroutines in your
libraries? I imagine you need to somehow tell emacs to search
a directory tree to find out names. Emacs may also need the capability
of parsing .mod files to find out names and types of arguments to
the subroutines included in the modules.

For a quick look, I tested ESC-/ in a Fortran source code on emacs.
It interpolated names by searching my mailbox! :-) OK. I need to
read documentations.

Thanks for the info.
Ryo
TimC

2004-10-22, 3:56 am

On Thu, 21 Oct 2004 at 23:09 GMT, Ryo Furue (aka Bruce)
was almost, but not quite, entirely unlike tea:
> Janne Blomqvist <foo@bar.invalid> wrote in message news:<slrncnf0t9.p5d.foo@imhotep.hut.fi>...
>
> I'm curious. How does emacs know the names of subroutines in your
> libraries? I imagine you need to somehow tell emacs to search
> a directory tree to find out names. Emacs may also need the capability
> of parsing .mod files to find out names and types of arguments to
> the subroutines included in the modules.


Supply recursively all filenames to etags (if you get "arguments too
long", you can always tell etags to append to the old
list). Unfortunately, etags doesn't deal with F90 code so well. Up
until recently, it was case sensetive too, and I submitted a feature
request to turn case sensetivity off for case insensetive languages,
but haven't gotten around to testing it, or even responding to the
patch posted.

> For a quick look, I tested ESC-/ in a Fortran source code on emacs.
> It interpolated names by searching my mailbox! :-) OK. I need to
> read documentations.


Sure you weren't in the wrong major mode?

No idea; I don't use completion often - none of my projects are big
enough.

--
TimC -- http://astronomy.swin.edu.au/staff/tconnors/
BSDM is fun, nothing like AIX. --Graham Reed
beliavsky@aol.com

2004-10-22, 3:56 am

asifaleras@hotmail.com (Angelo) wrote in message news:<573b6c30.0410190211.165076dd@posting.google.com>...
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.


I like XEmacs, which others have mentioned. Actually my favorite is
Epsilon, a commercial Emacs-like editor available for Windows and
Linux. An important feature of Emacs-like editors is that you can run
a shell within a buffer. Then you have an unlimited history of
previous commands and results and can copy results to other files.
I've gotten so used to this feature that I would not use any editor
than cannot run a shell (either cmd.exe on Windows or bash/ksh/sh on
Linux).
Catherine Rees Lay

2004-10-22, 8:56 am

In article <e10cccdf.0410210026.30953550@posting.google.com>, Ryo Furue
<furufuru@ccsr.u-tokyo.ac.jp> writes
>
>The best IDE feature I've ever seen is the debugger of Visual
>Basic, which my wife was using before. You specify breakpoints
>by clicks of the mouse on the source code and run the program.
>The program stops at one of the breakponts.


Err - every Fortran debugger I've ever used professionally has done
this. The Salford debugger did it from at least 12 years ago, and also
had (and still has) the fabulous feature that you can set it to stop
when the value in a particular variable is changed - even if it's in a
subroutine or by EQUIVALENCE. In both cases the only difference is that
you press a function key to set the breakpoint rather than just clicking
(I slightly prefer the just click method, since it's what I'm used to
with Delphi, but it's marginal).

>Then when you place
>your mouse pointer on a variable, its value is shown in a baloon!
>

CVF, anybody? The current Salford version requires you to click on it,
but this has the advantage that the value stays visible when you click
on the next one as well. These are the only two I've used seriously
recently enough to comment. 12 years ago the Salford version did require
you to type "print <variablename>" to see its value, but that went out
with Windows NT.

>So, I wonder why Fortran people (including me) don't work like this.


Some of us do. I wouldn't work any other way. If you want to work like
this - do it. The tools have been available for over a decade. It's a
HUGE time saving over adding PRINT statements to your code and
recompiling. Used at the sort of level you describe (no slight intended,
this is how I use it 95% of the time, and the other 5% is mostly the
"stop when the value changes" feature I described above) it's a 10
minute process to learn, tops. For instance, to run the CVF debugger in
the way you describe, all you need to know is that F9 sets a breakpoint
and F5 starts the debug run. That's it, folks. Learning curve over. It's
nothing like as hard as learning to use a sophisticated editor.

>Is it because there's no free comprehensive IDE? As I said, I've
>never used an IDE; I just watch my wife programming. If there's a
>free IDE like JBuilder and Eclips for Fortran, I'd definitely give
>it a try. (JBuilder is free for personal use, I think.)
>

F77 or F90? If 77, you could try FTN77. Personally, my time is worth
money. It takes so much longer to debug code (especially someone else's)
using any other method, it's cheaper to buy a compiler with a decent
debugger in the first place.

[I appreciate none of this is Linux which the OP was asking about, but
then neither is Visual Basic.]

Catherine.

>Cheers,
>Ryo


--
Catherine Rees Lay
To email me, use my first name in front of the "at".
Kamaraju Kusumanchi

2004-10-22, 3:57 pm

Angelo wrote:
> I am aware of several free (for research purposes) fortran 95
> compilers for use in Linux, such as Intel or g95. I am interested to
> know, if any free editor exists in Linux and which do you prefer to
> work with.
>
> Thanks in advance for your comments.

I use vim or sometimes gvim along with ctags. There are couple of
plugins in vim - project, fortran indentation, fortran syntax
highlighting which make your life easier.

I feel that vim is well equipped with all the tools for C programming
than fortran. You need to spend initial couple of hours to customize the
settings and stuff. For example, to get the syntax highlighting for
newly created.f90 files, you need to add couples lines into .vimrc etc.,

The vim community is not much active when it comes to fortran. But since
I know vim pretty well, I stuck with it instead of learning a new editor
(like emacs).

If you are starting new, I suggest go directly to x-emacs if you have
good memory (you need to rememeber all those nifty shortcuts). If you
want intuitive key bindings then go for vim. I personally feel that
trying out different things and then choosing one is a time consuming
effort. Choose one and stick with it. Both have good and bad features.
Both are quite powerful and can accomplish almost any complicated
editing job.

The other editors such as nedit, pico etc., might be good for starting
programming. But if you plan to do a lot of programming in linux, either
vim or emacs is the way to go..

hth
raju
dpbozarth

2004-10-22, 8:57 pm

asifaleras@hotmail.com (Angelo) wrote in message news:<573b6c30.0410201432.43608a01@posting.google.com>...
> I use Compaq Visual Fortran in Windows, which I personally think it is
> a very good choice as a programming environment. Is any other similar
> application, freeware for research purposes, available in Linux? I
> know that Absoft and Lahey / Fujitsu have also developed sophisticated
> programming applications, but not freeware.
>

I also use CVF, and while the integrated debugger is nice when needed,
I think the editor is lacking for code development...it is somewhat
better than the feeble attempt at a code editor in the Visual Basic
IDE, but is still far short of even the old DOS Brief editor in many
ways (and I know there's a Brief key mapping, but it isn't complete
and near as I can tell one can't eliminate the Alt binding to menus
which keeps interfering w/ other commands)...
Ryo Furue

2004-10-23, 3:56 am

TimC <tconnors@no.spam.accepted.here-astro.swin.edu.au> wrote in message news:<slrn-0.9.7.4-9401-32123-200410221131-tc@hexane.ssi.swin.edu.au>...
[...]
> Supply recursively all filenames to etags (if you get "arguments too
> long", you can always tell etags to append to the old
> list). Unfortunately, etags doesn't deal with F90 code so well. Up
> until recently, it was case sensetive too, and I submitted a feature
> request to turn case sensetivity off for case insensetive languages,
> but haven't gotten around to testing it, or even responding to the
> patch posted.


Thank you, TimC, for the info. I'm pleased that emacs is so capable.
I didn't know that, while I've been using it for programming for a long
time. When I saw poeple's response that they use (x)emacs, not IDEs,
I assumed that they use emacs as I do. I was wrong.

>
> Sure you weren't in the wrong major mode?


I'm in the F90 mode. The bottom line says "(F90)".
Keyword completion works ("end sub<press tab>" --> "end subroutine foo")
in this buffer. Still,

"call ran<press ESC />" --> "call randy"

and the echo region says "Expansion found in '+inbox'". That's the inbox
of the mailreader plugged in to emacs. I'm not complaining or asking
how to fix this. I'll consult documentations for that. I'm telling this
because it's funny. :-)

Ryo
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com