Questions tagged [filetype-fortran]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

add python option in vimrc

For my fortran ft I use au BufWritePre <buffer> :silent %!fprettify --silent in my ftplugin. The fprettify is a python script with many command line options, using argparse. Now, my question is,...
1
vote
1answer
61 views

Fortran Syntax Highlighting detecting apostrophes as Strings

I am using VIM 7.4 with syntax highlighting on some Fortran77 source code. One comment has a single apostrophe that never is repeated/closed (eg * Bert's bees), causing the remaining source code to ...
3
votes
1answer
121 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
185 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
385 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
182 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 ...
8
votes
4answers
264 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
145 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
371 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
342 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 ...