Wikia

Vim Tips Wiki

Changes: Fortran highlighting problems

Edit

Back to page

(formatting and some rewording)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 11: Line 11:
 
|category2=Syntax
 
|category2=Syntax
 
}}
 
}}
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 <tt>.for</tt> extension. This can be done by adding the following to the .vimrc file:
+
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 <code>.for</code> extension. This can be done by adding the following to the .vimrc file:
   
 
<pre>
 
<pre>

Latest revision as of 05:31, July 13, 2012

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

CommentsEdit

Around Wikia's network

Random Wiki