user32004
user32004

Reputation: 2403

Add a color scheme for Fortran source files

I just managed to get gfortran to compile properly, with Xcode Tools 4.2 installed on Mac OS 7 Lion. But now whenever I edit a .f90 file in Vim (terminal) there is no color scheme.

How can I add a color scheme to Vim for editing Fortran files?

Upvotes: 1

Views: 1927

Answers (1)

bananafish
bananafish

Reputation: 2917

Make sure you have this line in your .vimrc:

syntax on

If that doesn't fix it, also add this (although this should get picked up automatically) to your .vimrc:

au BufNewFile,BufRead *.f90 set filetype=fortran

Upvotes: 1

Related Questions