Skip to content

Commit

Permalink
Fixed compatible mode in most runtime files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brammool committed Apr 30, 2012
1 parent fbda4db commit cfbdc48
Show file tree
Hide file tree
Showing 37 changed files with 226 additions and 46 deletions.
5 changes: 5 additions & 0 deletions runtime/autoload/ada.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
if version < 700
finish
endif
let s:keepcpo= &cpo
set cpo&vim

" Section: Constants {{{1
"
Expand Down Expand Up @@ -619,6 +621,9 @@ lockvar g:ada#Comment
lockvar! g:ada#Keywords
lockvar! g:ada#Ctags_Kinds

let &cpo = s:keepcpo
unlet s:keepcpo

finish " 1}}}

"------------------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion runtime/compiler/cs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
" Compiler: Microsoft Visual Studio C#
" Maintainer: Zhou YiChao (broken.zhou@gmail.com)
" Previous Maintainer: Joseph H. Yao (hyao@sina.com)
" Last Change: 2011 Apr 21
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "cs"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m,
\%tarning%*[^:]:\ %m

CompilerSet makeprg=csc\ %

let &cpo = s:keepcpo
unlet s:keepcpo
6 changes: 6 additions & 0 deletions runtime/compiler/decada.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
" Help Page: compiler-decada
"------------------------------------------------------------------------------

let s:keepcpo= &cpo
set cpo&vim

if (exists("current_compiler") &&
\ current_compiler == "decada") ||
\ version < 700
Expand Down Expand Up @@ -44,6 +47,9 @@ endif
execute "CompilerSet makeprg=" . escape (g:decada.Make_Command, ' ')
execute "CompilerSet errorformat=" . escape (g:decada.Error_Format, ' ')

let &cpo = s:keepcpo
unlet s:keepcpo

finish " 1}}}

"------------------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion runtime/compiler/g95.vim
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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>
Expand All @@ -21,3 +23,6 @@ CompilerSet errorformat=
\%-Z%trror:\ %m,
\%-Z%tarning\ (%n):\ %m,
\%-C%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/gfortran.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" Compiler: GNU Fortran Compiler
" Maintainer: H Xu <xuhdev@gmail.com>
" Version: 0.1.3
" Last Change: 19 March 2011
" Last Change: 2012 Apr 30
" Homepage: http://www.vim.org/scripts/script.php?script_id=3496
" https://bitbucket.org/xuhdev/compiler-gfortran.vim
" License: Same as Vim
Expand All @@ -10,6 +10,8 @@ if exists('current_compiler')
finish
endif
let current_compiler = 'gfortran'
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -20,3 +22,6 @@ CompilerSet errorformat=
\%-Z%trror:\ %m,
\%-Z%tarning:\ %m,
\%-C%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
9 changes: 6 additions & 3 deletions runtime/compiler/gnat.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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}}}

"------------------------------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion runtime/compiler/hp_acc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
" Compiler: HP aCC
" Maintainer: Matthias Ulrich <matthias-ulrich@web.de>
" URL: http://www.subhome.de/vim/hp_acc.vim
" Last Change: 2005 Nov 19
" Last Change: 2012 Apr 30
"
" aCC --version says: "HP ANSI C++ B3910B A.03.13"
" This compiler has been tested on:
Expand All @@ -19,6 +19,8 @@ if exists("current_compiler")
finish
endif
let current_compiler = "hp_acc"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -30,4 +32,7 @@ CompilerSet errorformat=%A%trror\ %n\:\ \"%f\"\\,\ line\ %l\ \#\ %m,
\%Z\ \ \ \ %p^%.%#,
\%-C%.%#

let &cpo = s:keepcpo
unlet s:keepcpo

" vim:ts=8:sw=4:cindent
7 changes: 6 additions & 1 deletion runtime/compiler/ifort.vim
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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>
Expand All @@ -20,3 +22,6 @@ CompilerSet errorformat=
\%A%f(%l):\ %tarning\ \#%n:\ %m,
\%-Z%p^,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/intel.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: Intel C++ 7.1
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 May 16
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "intel"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat=%E%f(%l):\ error:\ %m,
\%-Z\ \ %p^,
\%-G\\s%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/irix5_c.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: SGI IRIX 5.3 cc
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "irix5_c"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat=\%Ecfe:\ Error:\ %f\\,\ line\ %l:\ %m,
\%-Z\ %p^,
\-G\\s%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/irix5_cpp.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: SGI IRIX 5.3 CC or NCC
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "irix5_cpp"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat=%E\"%f\"\\,\ line\ %l:\ error(%n):\ ,
\%-Z\ \ %p%^,
\%+C\ %\\{10}%.%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/mips_c.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: SGI IRIX 6.5 MIPS C (cc)
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "mips_c"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%-Z\ \ %p^,
\%-G\\s%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/mipspro_c89.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: SGI IRIX 6.5 MIPSPro C (c89)
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "mipspro_c89"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -20,3 +22,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%+C\ \ %m,
\%-G\\s%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
7 changes: 6 additions & 1 deletion runtime/compiler/mipspro_cpp.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
" Vim compiler file
" Compiler: SGI IRIX 6.5 MIPSPro C++ (CC)
" Maintainer: David Harrison <david_jr@users.sourceforge.net>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let current_compiler = "mipspro_cpp"
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -19,3 +21,6 @@ CompilerSet errorformat=%Ecc\-%n\ %.%#:\ ERROR\ File\ =\ %f\%\\,\ Line\ =\ %l,
\%-Z\ \ %p^,
\%-G\\s%#,
\%-G%.%#

let &cpo = s:keepcpo
unlet s:keepcpo
11 changes: 5 additions & 6 deletions runtime/compiler/tex.vim
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
" Vim compiler file
" Compiler: TeX
" Maintainer: Artem Chuprina <ran@ran.pp.ru>
" Last Change: 2004 Mar 27
" Last Change: 2012 Apr 30

if exists("current_compiler")
finish
endif
let s:keepcpo= &cpo
set cpo&vim

if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
Expand All @@ -30,9 +32,6 @@ else
let current_compiler = 'make'
endif

let s:cpo_save = &cpo
set cpo-=C

" Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
" addition from Srinath Avadhanula <srinath@fastmail.fm>
CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
Expand Down Expand Up @@ -64,5 +63,5 @@ CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
\%+Q%*[^()])%r,
\%+Q[%\\d%*[^()])%r

let &cpo = s:cpo_save
unlet s:cpo_save
let &cpo = s:keepcpo
unlet s:keepcpo
4 changes: 3 additions & 1 deletion runtime/doc/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.3. Last change: 2012 Apr 26
*options.txt* For Vim version 7.3. Last change: 2012 Apr 28


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -7119,6 +7119,8 @@ A jump table for the options with a short description can be found at |Q_op|.
the file should contain words with similar meaning, separated by
non-keyword characters (white space is preferred). Maximum line
length is 510 bytes.
To obtain a file to be used here, check out this ftp site:
ftp://ftp.ox.ac.uk/pub/wordlists/ First get the README file.
To include a comma in a file name precede it with a backslash. Spaces
after a comma are ignored, otherwise spaces are included in the file
name. See |option-backslash| about using backslashes.
Expand Down
Loading

0 comments on commit cfbdc48

Please sign in to comment.