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
05-01-2008, 12:05 PM
Luís Silva
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.
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
05-02-2008, 08:56 AM
Luís Silva
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
05-14-2008, 03:23 AM
"Hector Barrios Molano"
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
05-14-2008, 02:41 PM
Luís Silva
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
05-15-2008, 03:21 PM
"Hector Barrios Molano"
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