0

I'm using vim to interpret a Fortran code and past a certain number of characters in a line it stops interpreting the remainder of the line and skips to the next, simply highlighting and ignoring the remaining code.

dang interpreter!

Notice how the rest of the code is now being treated as though it's a string because the closing bracket is now being ignored. This makes the rest of the code extremely difficult to read.

Since this is an issue with the editor and not really the code, I'm not even sure how to describe this problem while googling. I've looked at this post, this post and this post and tried setting let fortran_free_source=1, let fortran_have_tabs=1, set columns=100 and set colorcolumn=80. None of these seem to do anything.

I don't have a .vimrc file, so I've been manually trying these in the window.

I'm using vim version 7.4, and vim --version prints out a bunch of patches if those are interesting.

I thought that maybe it was the extension, since it's interpreting myfile.f, so I renamed it myfile.f90 and this didn't help, but of course changing it to myfile.py meant there was no problem, so I'm assuming this means that Fortran is supposed to have a character limit that this code author simply ignored and vim doesn't know how to handle that?

Basically, how do I fix this interpreter so it doesn't ignore the end of the line?

S Usman
  • 63
  • 8

0 Answers0