We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [filetype-fortran]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
123 views

Errors/warnings from :make are not shown correctly

So far I've been compiling projects from within Vim by suspending it with Esc and Ctrl + Z, running make (btw, I'm using the gfortran compiler and, should it be important, using the mpifort wrapper, ...
2
votes
1answer
286 views

Wrong indentation for fortran forall

I'm using Neovim to edit Fortran 90 files and if I type the one-liner: forall(i=1:10) b(i) = i Neovim will always assume that it has a forall block and indent the following lines (til the end of the ...
2
votes
1answer
166 views

with matchit installed %match parenthesis and brackets only once in Fortran files

At the moment I'm writing, I removed the matchit plugin and the % works well, making the cursor jump from a (, [, or { to the corresponding closing character and vice versa. Now I installed matchit ...
7
votes
4answers
253 views

Use pattern of global ex command found on a line to substitute in another line

In my fortran code I have a lot of blocks like the following subroutine name(arg1,arg2,arg3,...) : end subroutine and I want them to become subroutine name(arg1,arg2,arg3,...) : end subroutine name ...
4
votes
3answers
131 views

How do I open several FORTRAN files in Vim and save them as HTML files?

I know the separate answers. For example, To open several files: :n \**/*.f90 To save *.f90 file to HTML: :TOhtml and :wq. However, I don't know how to combine both of them.
7
votes
1answer
314 views

Display current subroutine/subprogram in statusline

I am currently coding fortran, and I have huge "subprograms" (called "subroutine" in fortran). So I would like the name of the current subroutine (the subprogram my cursor is currently in) to be ...
3
votes
1answer
244 views

Using Vim gD on project with multiple folders

I am using Vim to edit Fortran 90 code. The code is structured in the following manner: ./srcs - contains main code file ./libs - contains some module file If I open the main file in Vim and then ...