FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu User

 
 
LinkBack Thread Tools
 
Old 04-30-2008, 03:58 PM
"Hector Barrios Molano"
 
Default Programing Fortran90 with g95 and VIM

Hello.
I need to know how to "link" the g95 compiler with the text editor VIM to program like a IDE, in the same place write the code and copile it.

Thankyou.

Hector Emilio Barrios Molano.

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-01-2008, 12:05 PM
Luís Silva
 
Default Programing Fortran90 with g95 and VIM

> Hello.
> I need to know how to "link" the g95 compiler with the
> text editor VIM to program like a IDE, in the same place
> write the code and copile it.
I use to write fortran code all the time in VIM. My approach
to the problem was to write a Makefile and to run :make
from within vim. This works pretty well for me.

--
Luís A. C. Silva
lacsilva@gmail.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@
L+++(+++)$>+++ !E---(---)>--- W++(++)>++ !N !o
K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-
t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++?
h?>$ !r?* !y**
------END GEEK CODE BLOCK------
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-01-2008, 04:50 PM
"Hector Barrios Molano"
 
Default Programing Fortran90 with g95 and VIM

Thanks Luís, but now my questions are: how can I write a Makefile for VIM?, what code is used to do it?, does exist how-to's or another kind of help for this?

Again thanks for your help.

Hector Emilio Barrios


2008/5/1 Luís Silva <lacsilva@gmail.com>:

> Hello.

> I need to know how to "link" the g95 compiler with the

> text editor VIM to program like a IDE, in the same place

> write the code and copile it.

I use to write fortran code all the time in VIM. My approach

to the problem was to write a Makefile and to run :make

from within vim. This works pretty well for me.



--

Luís A. C. Silva

lacsilva@gmail.com

-----BEGIN GEEK CODE BLOCK-----

*Version: 3.1

*GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@

L+++(+++)$>+++ !E---(---)>--- W++(++)>++ !N !o

K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-

t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++?

h?>$ !r?* !y**

------END GEEK CODE BLOCK------


--

kubuntu-users mailing list

kubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users




--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-02-2008, 08:56 AM
Luís Silva
 
Default Programing Fortran90 with g95 and VIM

This is not a Makefile for VIM. Are you familiarised with
the make program? If so you just need to create a regular
Makefile. The manual with a good tutorial is here:

http://www.gnu.org/software/make/manual/make.html

Play around a bit with it before you go on. As I told you,
to run the makefile you just need to type :make from inside
VIM or make on the command-line. Also, from inside vim
type :help make to see what your possibilities are.
--
Luís A. C. Silva
lacsilva@gmail.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@
L+++(+++)$>+++ !E---(---)>--- W++(++)>++ !N !o
K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-
t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++?
h?>$ !r?* !y**
------END GEEK CODE BLOCK------
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-14-2008, 03:23 AM
"Hector Barrios Molano"
 
Default Programing Fortran90 with g95 and VIM

Thanks Luis, it was very helpful, I wrote a makefile for g95 compiler. Thanks again
One more question, do you know if it's possible after compile the program, to run it inside VIM, without leave VIM? or there's nothing more that leave VIM and type ./program's_name on console.


Thanks

Hector Emilio Barrios Barrios


2008/5/2 Luís Silva <lacsilva@gmail.com>:

This is not a Makefile for VIM. Are you familiarised with

the make program? If so you just need to create a regular

Makefile. The manual with a good tutorial is here:



http://www.gnu.org/software/make/manual/make.html



Play around a bit with it before you go on. As I told you,

to run the makefile you just need to type :make from inside

VIM or make on the command-line. Also, from inside vim

type :help make to see what your possibilities are.

--

Luís A. C. Silva

lacsilva@gmail.com

-----BEGIN GEEK CODE BLOCK-----

*Version: 3.1

*GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@

L+++(+++)$>+++ !E---(---)>--- W++(++)>++ !N !o

K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-

t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++?

h?>$ !r?* !y**

------END GEEK CODE BLOCK------


--

kubuntu-users mailing list

kubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users




--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-14-2008, 02:41 PM
Luís Silva
 
Default Programing Fortran90 with g95 and VIM

> Thanks Luis, it was very helpful, I wrote a makefile for g95 compiler.
> Thanks again
You're welcome!
> One more question, do you know if it's possible after compile the program,
> to run it inside VIM, without leave VIM? or there's nothing more that leave
> VIM and type ./program's_name on console.
You can execute any command line program from within vim by
typing :!your_command_name
>
> Thanks
>
> Hector Emilio Barrios Barrios
--
Luís A. C. Silva
lacsilva@gmail.com
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@ L+++(+++)$>+++ !E---(---)>---
W++(++)>++ !N !o K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-
t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++? h?>$ !r?* !y**
------END GEEK CODE BLOCK------

--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 
Old 05-15-2008, 03:21 PM
"Hector Barrios Molano"
 
Default Programing Fortran90 with g95 and VIM

Thakns Luis it works!

2008/5/14 Luís Silva <lacsilva@gmail.com>:

> Thanks Luis, it was very helpful, I wrote a makefile for g95 compiler.

> Thanks again

You're welcome!

> One more question, do you know if it's possible after compile the program,

> to run it inside VIM, without leave VIM? or there's nothing more that leave

> VIM and type ./program's_name on console.

You can execute any command line program from within vim by

typing :!your_command_name

>

> Thanks

>

> Hector Emilio Barrios Barrios

--

Luís A. C. Silva

lacsilva@gmail.com

-----BEGIN GEEK CODE BLOCK-----

*Version: 3.1

*GCS/S d()>$ s: a? C+++(+++)$>+++ UL+++ P@ L+++(+++)$>+++ !E---(---)>---

W++(++)>++ !N !o K--? !w---(---)?>--- O-(-) !M-(-)>- !V PS++(+) PE Y+ PGP-

t+>$ 5++ X++ !R? tv b++ DI+++(++)>+ !D G+ e+++? h?>$ !r?* !y**

------END GEEK CODE BLOCK------



--

kubuntu-users mailing list

kubuntu-users@lists.ubuntu.com

Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users



--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org