Mercurial > vim
diff runtime/compiler/gnat.vim @ 3496:d1e4abe8342c
Fixed compatible mode in most runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 30 Apr 2012 15:56:52 +0200 |
parents | 7bc41231fbc7 |
children | e1df51f68736 |
line wrap: on
line diff
--- a/runtime/compiler/gnat.vim +++ b/runtime/compiler/gnat.vim @@ -17,11 +17,11 @@ " Help Page: compiler-gnat "------------------------------------------------------------------------------ -if (exists("current_compiler") && - \ current_compiler == "gnat") || - \ version < 700 +if (exists("current_compiler")&& current_compiler == "gnat") || version < 700 finish endif +let s:keepcpo= &cpo +set cpo&vim let current_compiler = "gnat" @@ -62,6 +62,9 @@ endif execute "CompilerSet makeprg=" . escape (g:gnat.Get_Command('Make'), ' ') execute "CompilerSet errorformat=" . escape (g:gnat.Error_Format, ' ') +let &cpo = s:keepcpo +unlet s:keepcpo + finish " 1}}} "------------------------------------------------------------------------------