From 910f66f90c928da8b607ccfdc12fc33d9cb8d4a9 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 5 Apr 2006 20:41:53 +0000 Subject: updated for version 7.0c10 --- runtime/ftplugin/fortran.vim | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/fortran.vim b/runtime/ftplugin/fortran.vim index d189bf4656..c817b3b787 100644 --- a/runtime/ftplugin/fortran.vim +++ b/runtime/ftplugin/fortran.vim @@ -1,10 +1,11 @@ " Vim settings file " Language: Fortran90 (and Fortran95, Fortran77, F and elf90) -" Version: 0.44 -" Last Change: 2003 May 18 +" Version: 0.45 +" Last Change: 2006 Apr. 03 " URL: http://www.unb.ca/chem/ajit/ftplugin/fortran.vim " Maintainer: Ajit J. Thakkar ; " Usage: Do :help fortran-plugin from Vim +" Credits: Useful suggestions were made by Stefano Zacchiroli " Only do these settings when not done yet for this buffer if exists("b:did_ftplugin") @@ -26,11 +27,11 @@ if !exists("b:fortran_fixed_source") else " f90 and f95 allow both fixed and free source form " assume fixed source form unless signs of free source form - " are detected in the first five columns of the first 25 lines + " are detected in the first five columns of the first 250 lines " 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 s:lmax = 25 + let s:lmax = 250 if ( s:lmax > line("$") ) let s:lmax = line("$") endif @@ -73,7 +74,8 @@ endif " Set 'formatoptions' to break comment and text lines but allow long lines setlocal fo+=tcql -setlocal include=^#\\=\\s*include\\s\\+ +setlocal include=^\\c#\\=\\s*include\\s\\+ +setlocal suffixesadd+=.f95,.f90,.for,.f,.F,.f77,.ftn,.fpp let s:cposet=&cpoptions set cpoptions-=C @@ -83,6 +85,7 @@ if !exists("b:match_words") let s:notend = '\%(\:' . s:notselect. '\:\,' . @@ -95,7 +98,7 @@ if !exists("b:match_words") \ s:notend . '\:\,'. \ s:notend . '\:\,'. \ s:notend . '\:\,'. - \ s:notend . '\:\,'. + \ s:notend . '\' . s:notprocedure . ':\,'. \ s:notend . '\:\' endif -- cgit v1.2.3