Questions tagged [filetype-fortran]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
42 views

Can't get textwidth for syntax highlighting working

I have a bunch of (spagetti) fortran code that is in fixed form, but without the line length restrictions. As such, it gets some odd highlighting: I've tried 3 different ways to get it to highlight ...
0
votes
0answers
148 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
328 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
172 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
137 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
334 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
271 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 ...