vim doesn't recognize columns beyond 72 with fortran90 code

前端 未结 2 966
一个人的身影
一个人的身影 2021-01-05 18:44

I am editing a fortran90 code with vim. Note that I\'m working with a *.f90 file, not *.f. vim doesn\'t recognize as legitimate code anything beyond column 72. This is an

2条回答
  •  时光说笑
    2021-01-05 19:35

    if I create a new .f90 file syntax is highlighted as if it is fortran 77 (fixed line length, comments in first col, code at 6th col, etc etc) rather than modern free form fortran.

    :let b:fortran_fixed_source=0
    :set syntax=fortran
    

    does the trick to get vim highlighting it correctly.

提交回复
热议问题