From cb84f677443a160c35a33c789dc91918e9c2e693 Mon Sep 17 00:00:00 2001 From: Bob Hiestand Date: Tue, 31 Jul 2007 22:31:44 +0000 Subject: [PATCH] Force nocompatible for plugins. git-svn-id: https://vcscommand.googlecode.com/svn/trunk@56 e7462f97-9721-0410-a4e7-d7c98e439057 --- plugin/vcscommand.vim | 5 +++++ plugin/vcscvs.vim | 8 ++++++++ plugin/vcssvk.vim | 8 ++++++++ plugin/vcssvn.vim | 8 ++++++++ 4 files changed, 29 insertions(+) diff --git a/plugin/vcscommand.vim b/plugin/vcscommand.vim index 6a69c60..281e373 100644 --- a/plugin/vcscommand.vim +++ b/plugin/vcscommand.vim @@ -278,6 +278,9 @@ if v:version < 700 finish endif +let s:save_cpo=&cpo +set cpo&vim + " Section: Event group setup {{{1 augroup VCSCommand @@ -1218,3 +1221,5 @@ augroup END let loaded_VCSCommand = 2 silent do VCSCommand User VCSPluginFinish + +let &cpo = s:save_cpo diff --git a/plugin/vcscvs.vim b/plugin/vcscvs.vim index f3495af..a3936a5 100644 --- a/plugin/vcscvs.vim +++ b/plugin/vcscvs.vim @@ -79,10 +79,16 @@ " This variable, if set, determines the options passed to the cvs diff " command. If not set, it defaults to 'u'. +" Section: Plugin header {{{1 + if v:version < 700 + echohl WarningMsg|echomsg 'VCSCommand requires at least VIM 7.0'|echohl None finish endif +let s:save_cpo=&cpo +set cpo&vim + runtime plugin/vcscommand.vim if !executable(VCSCommandGetOption('VCSCommandCVSExec', 'cvs')) @@ -411,3 +417,5 @@ amenu &Plugin.VCS.CVS.WatchRemove CVSWatchRemove " Section: Plugin Registration {{{1 call VCSCommandRegisterModule('CVS', expand(''), s:cvsFunctions, s:cvsExtensionMappings) + +let &cpo = s:save_cpo diff --git a/plugin/vcssvk.vim b/plugin/vcssvk.vim index f90f37d..a5f493a 100644 --- a/plugin/vcssvk.vim +++ b/plugin/vcssvk.vim @@ -33,10 +33,16 @@ " This variable specifies the SVK executable. If not set, it defaults to " 'svk' executed from the user's executable path. +" Section: Plugin header {{{1 + if v:version < 700 + echohl WarningMsg|echomsg 'VCSCommand requires at least VIM 7.0'|echohl None finish endif +let s:save_cpo=&cpo +set cpo&vim + runtime plugin/vcscommand.vim if !executable(VCSCommandGetOption('VCSCommandSVKExec', 'svk')) @@ -248,3 +254,5 @@ endfunction " Section: Plugin Registration {{{1 call VCSCommandRegisterModule('SVK', expand(''), s:svkFunctions, []) + +let &cpo = s:save_cpo diff --git a/plugin/vcssvn.vim b/plugin/vcssvn.vim index cf2fd02..e3a6eff 100644 --- a/plugin/vcssvn.vim +++ b/plugin/vcssvn.vim @@ -40,10 +40,16 @@ " This variable, if set, determines the options passed to the svn diff " command (such as 'u', 'w', or 'b'). +" Section: Plugin header {{{1 + if v:version < 700 + echohl WarningMsg|echomsg 'VCSCommand requires at least VIM 7.0'|echohl None finish endif +let s:save_cpo=&cpo +set cpo&vim + runtime plugin/vcscommand.vim if !executable(VCSCommandGetOption('VCSCommandSVNExec', 'svn')) @@ -274,3 +280,5 @@ endfunction " Section: Plugin Registration {{{1 call VCSCommandRegisterModule('SVN', expand(''), s:svnFunctions, []) + +let &cpo = s:save_cpo -- 2.11.4.GIT