summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/ifort.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/ifort.vim
parente8938e507e5dbeea25accd3586cd9aca13e5bf64 (diff)
Fixed compatible mode in most runtime files.
Diffstat (limited to 'runtime/compiler/ifort.vim')
-rw-r--r--runtime/compiler/ifort.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/compiler/ifort.vim b/runtime/compiler/ifort.vim
index 04763f9923..3a60d0cd12 100644
--- a/runtime/compiler/ifort.vim
+++ b/runtime/compiler/ifort.vim
@@ -1,7 +1,7 @@
" Compiler: Intel Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.1
-" Last Change: 19 March 2011
+" Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3497
" https://bitbucket.org/xuhdev/compiler-ifort.vim
" License: Same as Vim
@@ -10,6 +10,8 @@ if exists('current_compiler')
finish
endif
let current_compiler = 'ifort'
+let s:keepcpo= &cpo
+set cpo&vim
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
@@ -20,3 +22,6 @@ CompilerSet errorformat=
\%A%f(%l):\ %tarning\ \#%n:\ %m,
\%-Z%p^,
\%-G%.%#
+
+let &cpo = s:keepcpo
+unlet s:keepcpo