No edit summary |
Luc Hermitte (talk | contribs) m (Added to Syntax Category) |
||
Line 10: | Line 10: | ||
|text= |
|text= |
||
Sometimes the FORTRAN syntax file doesn't set the correct source form. |
Sometimes the FORTRAN syntax file doesn't set the correct source form. |
||
− | |||
− | |||
So if you want to choose it by yourself, add the following line in your vimrc file: |
So if you want to choose it by yourself, add the following line in your vimrc file: |
||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
− | |||
The other way to do this is to change the file extension (F77/F90/F95), but it might be a long and/or hazardous work for big projects... |
The other way to do this is to change the file extension (F77/F90/F95), but it might be a long and/or hazardous work for big projects... |
||
− | |||
− | |||
}} |
}} |
||
== Comments == |
== Comments == |
||
This one placed before "syntax on" works better: |
This one placed before "syntax on" works better: |
||
− | |||
au BufRead *.for let b:fortran_fixed_source=1 |
au BufRead *.for let b:fortran_fixed_source=1 |
||
Line 37: | Line 27: | ||
---- |
---- |
||
You can also add the following line to a source file: |
You can also add the following line to a source file: |
||
⚫ | |||
− | |||
⚫ | |||
Line 45: | Line 34: | ||
---- |
---- |
||
<!-- parsed by vimtips.py in 0.592675 seconds--> |
<!-- parsed by vimtips.py in 0.592675 seconds--> |
||
+ | |||
+ | [[Category:Syntax]] |
Revision as of 14:16, 7 September 2007
Tip: #449 - Fortran highlighting problems
Created: March 26, 2003 4:23 Complexity: basic Author: Fabien Bouleau Version: 6.0 Karma: 4/4 Imported from: Tip#449
Sometimes the FORTRAN syntax file doesn't set the correct source form.
So if you want to choose it by yourself, add the following line in your vimrc file:
au BufNew *.for let b:fortran_fixed_source=1 " set the correct value
The other way to do this is to change the file extension (F77/F90/F95), but it might be a long and/or hazardous work for big projects...
Comments
This one placed before "syntax on" works better:
au BufRead *.for let b:fortran_fixed_source=1
FB
syrion--AT--freesbee.fr , March 26, 2003 5:50
You can also add the following line to a source file:
C vim:set ft=fortran:
Anonymous
, March 26, 2003 23:34