Though not standard-conforming, it is quite common to use a tab instead of six 
spaces in front of a Fortran fixed source form line where the first five 
columns are reserved for numeric labels and the sixth column indicating a 
continuation line. Patching fortran.vim with

--- vim.7.2/runtime/syntax/fortran.vim  2010-05-25 00:38:43.000000000 +0200
+++ custom/fortran.vim  2010-07-09 23:47:36.000000000 +0200
@@ -74,7 +74,7 @@
     " Detection becomes more accurate and time-consuming if more lines
     " are checked. Increase the limit below if you keep lots of comments at
     " the very top of each file and you have a fast computer.
-    let b:lmax = 250
+    let b:lmax = 1024
     if ( b:lmax > line("$") )
       let b:lmax = line("$")
     endif
@@ -82,7 +82,7 @@
     let b:ln=1
     while b:ln <= b:lmax
       let b:test = strpart(getline(b:ln),0,5)
-      if b:test[0] !~ '[Cc*!#]' && b:test !~ '^ \+[!#]' && b:test =~ '[^ 
0-9\t]'
+      if b:test !~ '^[ 0-9]*\t' && b:test !~ '^[Cc*]' && b:test !~ '^ *[!#]' 
&& b:test =~ '[^ 0-9\t]'
        let b:fortran_fixed_source = 0
        break
       endif

enhances the detection heuristics to identify such tabbed lines correctly as 
fixed form.

--

hendrik merx
[email protected]

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui