Tuesday, September 25, 2012

VIM and Fortran Syntax Highlighting Error when Creating New File

Hello all,

First I'd like to thank the VIM team for creating one of the best and most flexible editors in the world.

I just started learning VIM with Fortran, and I realized a syntax coloring problem when creating a Fortran file through

vim example.f

As shown in shot.png, the syntax coloring is only working partially.

However, if I reopen the file, the syntax coloring will be fully working, as shown in shot2.png.

I tried to add

au BufNewFile,BufReadPost *.f,*.for,*.fpp,*f95,*f90 setf fortran

into .vimrc but it doesn't seem to work.

I am currently running Debian Wheezy, VIM 7.3.

Is it because Vim shipped in Wheezy is not up to date?

Thank you,

Paul.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: