diff options
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/fortran.vim | 10 | ||||
-rw-r--r-- | runtime/ftplugin/kwt.vim | 10 | ||||
-rw-r--r-- | runtime/ftplugin/spec.vim | 8 |
3 files changed, 19 insertions, 9 deletions
diff --git a/runtime/ftplugin/fortran.vim b/runtime/ftplugin/fortran.vim index 741465da..948e216f 100644 --- a/runtime/ftplugin/fortran.vim +++ b/runtime/ftplugin/fortran.vim @@ -1,7 +1,7 @@ " Vim settings file " Language: Fortran90 (and Fortran95, Fortran77, F and elf90) -" Version: 0.46 -" Last Change: 2010 July 24 +" Version: 0.47 +" Last Change: 2011 December 28 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www.unb.ca/chem/ajit/> " Usage: Do :help fortran-plugin from Vim " Credits: @@ -12,6 +12,9 @@ if exists("b:did_ftplugin") finish endif +let s:cposet=&cpoptions +set cpoptions&vim + " Don't do other file type settings for this buffer let b:did_ftplugin = 1 @@ -78,9 +81,6 @@ setlocal fo+=tcql setlocal include=^\\c#\\=\\s*include\\s\\+ setlocal suffixesadd+=.f95,.f90,.for,.f,.F,.f77,.ftn,.fpp -let s:cposet=&cpoptions -set cpoptions-=C - " Define patterns for the matchit plugin if !exists("b:match_words") let s:notend = '\%(\<end\s\+\)\@<!' diff --git a/runtime/ftplugin/kwt.vim b/runtime/ftplugin/kwt.vim index 7be64229..6d4b8fdb 100644 --- a/runtime/ftplugin/kwt.vim +++ b/runtime/ftplugin/kwt.vim @@ -1,12 +1,13 @@ " Vim filetype plugin file " Language: Kimwitu++ -" Maintainer: Michael Piefel <piefel@informatik.hu-berlin.de> -" Last Change: 16 August 2001 +" Maintainer: Michael Piefel <entwurf@piefel.de> +" Last Change: 10 December 2011 " Behaves almost like C++ runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim -set cpo-=C +let s:cpo_save = &cpo +set cpo&vim " Limit the browser to related files if has("gui_win32") && !exists("b:browsefilter") @@ -18,3 +19,6 @@ endif " Set the errorformat for the Kimwitu++ compiler set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/ftplugin/spec.vim b/runtime/ftplugin/spec.vim index 3b1d70a4..b84ed63f 100644 --- a/runtime/ftplugin/spec.vim +++ b/runtime/ftplugin/spec.vim @@ -1,13 +1,16 @@ " Plugin to update the %changelog section of RPM spec files " Filename: spec.vim " Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> -" Last Change: Wed, 10 Apr 2002 16:28:52 -0300 +" Last Change: 2011 Dec 25 by Thilo Six if exists("b:did_ftplugin") finish endif let b:did_ftplugin = 1 +let s:cpo_save = &cpo +set cpo&vim + if !exists("no_plugin_maps") && !exists("no_spec_maps") if !hasmapto("<Plug>SpecChangelog") map <buffer> <LocalLeader>c <Plug>SpecChangelog @@ -166,3 +169,6 @@ let b:match_words = \ '^Name:^%description:^%clean:^%setup:^%build:^%install:^%files:' . \ '^%package:^%preun:^%postun:^%changelog' +let &cpo = s:cpo_save +unlet s:cpo_save + |