summaryrefslogtreecommitdiff
path: root/runtime/compiler/g95.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
committerBram Moolenaar <Bram@vim.org>2012-04-30 15:56:52 +0200
commit9a7224b5a0639c26c843c10afcafa5bf149271fd (patch)
tree9cafda4f3dd87f3ba177401248d65aa241f63ced /runtime/compiler/g95.vim
parente8938e507e5dbeea25accd3586cd9aca13e5bf64 (diff)
downloadvim-9a7224b5a0639c26c843c10afcafa5bf149271fd.zip
Fixed compatible mode in most runtime files.
Diffstat (limited to 'runtime/compiler/g95.vim')
-rw-r--r--runtime/compiler/g95.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/compiler/g95.vim b/runtime/compiler/g95.vim
index af8f05c8a..ecb3212cb 100644
--- a/runtime/compiler/g95.vim
+++ b/runtime/compiler/g95.vim
@@ -1,7 +1,7 @@
" Compiler: G95
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3
-" Last Change: 2011 Apr 01
+" Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3492
" https://bitbucket.org/xuhdev/compiler-g95.vim
" License: Same as Vim
@@ -10,6 +10,8 @@ if exists('current_compiler')
finish
endif
let current_compiler = 'g95'
+let s:keepcpo= &cpo
+set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
@@ -21,3 +23,6 @@ CompilerSet errorformat=
\%-Z%trror:\ %m,
\%-Z%tarning\ (%n):\ %m,
\%-C%.%#
+
+let &cpo = s:keepcpo
+unlet s:keepcpo