Vim Tips Wiki

Fortran highlighting problems

Revision as of 05:31, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
1,619pages on
this wiki
Tip 449 Printable Monobook Previous Next

created 2003 · complexity basic · author Fabien Bouleau · version 6.0

Sometimes the Fortran syntax files do not set the correct source form which can cause issues with highlighting. In order to fix this issue a user may wish to set the source manually for the .for extension. This can be done by adding the following to the .vimrc file:

au BufRead,BufNewFile *.for let b:fortran_fixed_source=1


Around Wikia's network

Random Wiki