vim doesn't recognize columns beyond 72 with fortran90 code

妖精的绣舞 提交于 2019-11-30 23:47:36

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.

This could be related to the 'synmaxcol' variable. If you run

:set synmaxcol?

In vim's command line, what do you get back? Setting this option higher might fix your issue. It's generally set low as vim can get laggy when syntax highlighting very long lines, such as those found in XML.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!