summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-30 13:11:27 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-30 13:11:27 +0100
commitb6b046b281fac168a78b3eafdea9274bef06882f (patch)
tree8d50c58421278f30521e290a8cf18c6085b78168 /runtime
parentdeaf7b739791095e2c98a7087dfe9b3c8dfd56f2 (diff)
Updated runtime files.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/ccomplete.vim7
-rw-r--r--runtime/compiler/gcc.vim2
-rw-r--r--runtime/compiler/rst.vim2
-rw-r--r--runtime/doc/eval.txt7
-rw-r--r--runtime/doc/options.txt4
-rw-r--r--runtime/doc/syntax.txt11
-rw-r--r--runtime/doc/todo.txt49
-rw-r--r--runtime/doc/usr_41.txt8
-rw-r--r--runtime/doc/various.txt5
-rw-r--r--runtime/filetype.vim6
-rw-r--r--runtime/ftplugin/fortran.vim10
-rw-r--r--runtime/ftplugin/kwt.vim10
-rw-r--r--runtime/ftplugin/spec.vim8
-rw-r--r--runtime/indent/fortran.vim10
-rw-r--r--runtime/indent/gitolite.vim8
-rw-r--r--runtime/indent/sdl.vim10
-rw-r--r--runtime/indent/tex.vim43
-rw-r--r--runtime/syntax/abel.vim11
-rw-r--r--runtime/syntax/art.vim8
-rw-r--r--runtime/syntax/ayacc.vim7
-rw-r--r--runtime/syntax/basic.vim7
-rw-r--r--runtime/syntax/bib.vim8
-rw-r--r--runtime/syntax/blank.vim8
-rw-r--r--runtime/syntax/c.vim7
-rw-r--r--runtime/syntax/clean.vim7
-rw-r--r--runtime/syntax/clipper.vim9
-rw-r--r--runtime/syntax/csc.vim7
-rw-r--r--runtime/syntax/cupl.vim11
-rw-r--r--runtime/syntax/cweb.vim7
-rw-r--r--runtime/syntax/fortran.vim15
-rw-r--r--runtime/syntax/gitolite.vim8
-rw-r--r--runtime/syntax/java.vim9
-rw-r--r--runtime/syntax/kwt.vim2
-rw-r--r--runtime/syntax/lua.vim371
-rw-r--r--runtime/syntax/sdl.vim2
35 files changed, 453 insertions, 251 deletions
diff --git a/runtime/autoload/ccomplete.vim b/runtime/autoload/ccomplete.vim
index 12fc92df2c..198bd20055 100644
--- a/runtime/autoload/ccomplete.vim
+++ b/runtime/autoload/ccomplete.vim
@@ -1,8 +1,10 @@
" Vim completion script
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2010 Mar 23
+" Last Change: 2011 Dec 30
+let s:cpo_save = &cpo
+set cpo&vim
" This function is used for the 'omnifunc' option.
function! ccomplete#Complete(findstart, base)
@@ -603,3 +605,6 @@ function! s:SearchMembers(matches, items, all)
endfor
return res
endfunc
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/compiler/gcc.vim b/runtime/compiler/gcc.vim
index c6c0e3f985..987a3a6260 100644
--- a/runtime/compiler/gcc.vim
+++ b/runtime/compiler/gcc.vim
@@ -9,7 +9,7 @@ endif
let current_compiler = "gcc"
let s:cpo_save = &cpo
-set cpo-=C
+set cpo&vim
CompilerSet errorformat=
\%*[^\"]\"%f\"%*\\D%l:%c:\ %m,
diff --git a/runtime/compiler/rst.vim b/runtime/compiler/rst.vim
index 07c7d4139c..15d2d79f64 100644
--- a/runtime/compiler/rst.vim
+++ b/runtime/compiler/rst.vim
@@ -9,7 +9,7 @@ endif
let current_compiler = "rst"
let s:cpo_save = &cpo
-set cpo-=C
+set cpo&vim
setlocal errorformat=
\%f:%l:\ (%tEBUG/0)\ %m,
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 89ac163477..514a6704a9 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt* For Vim version 7.3. Last change: 2011 Dec 14
+*eval.txt* For Vim version 7.3. Last change: 2011 Dec 19
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3941,11 +3941,12 @@ line2byte({lnum}) *line2byte()*
Return the byte count from the start of the buffer for line
{lnum}. This includes the end-of-line character, depending on
the 'fileformat' option for the current buffer. The first
- line returns 1.
+ line returns 1. 'encoding' matters, 'fileencoding' is ignored.
This can also be used to get the byte count for the line just
below the last line: >
line2byte(line("$") + 1)
-< This is the file size plus one.
+< This is the buffer size plus one. If 'fileencoding' is empty
+ it is the file size plus one.
When {lnum} is invalid, or the |+byte_offset| feature has been
disabled at compile time, -1 is returned.
Also see |byte2line()|, |go| and |:goto|.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index c52e31b1ba..5af206f25b 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 7.3. Last change: 2011 Dec 14
+*options.txt* For Vim version 7.3. Last change: 2011 Dec 15
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5059,7 +5059,7 @@ A jump table for the options with a short description can be found at |Q_op|.
respectively; see |CTRL-A| for more info on these commands.
alpha If included, single alphabetical characters will be
incremented or decremented. This is useful for a list with a
- letter index a), b), etc. *octal-number*
+ letter index a), b), etc. *octal-nrformats*
octal If included, numbers that start with a zero will be considered
to be octal. Example: Using CTRL-A on "007" results in "010".
hex If included, numbers starting with "0x" or "0X" will be
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 38bdb39683..ce65aab577 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1,4 +1,4 @@
-*syntax.txt* For Vim version 7.3. Last change: 2011 Nov 26
+*syntax.txt* For Vim version 7.3. Last change: 2011 Dec 30
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1603,11 +1603,6 @@ which are used for the statement itself, special characters used in debug
strings, strings, boolean constants and types (this, super) respectively. I
have opted to chose another background for those statements.
-In order to help you write code that can be easily ported between Java and
-C++, all C++ keywords can be marked as an error in a Java program. To
-have this add this line in your .vimrc file: >
- :let java_allow_cpp_keywords = 0
-
Javadoc is a program that takes special comments out of Java program files and
creates HTML pages. The standard configuration will highlight this HTML code
similarly to HTML files (see |html.vim|). You can even add Javascript
@@ -2775,7 +2770,9 @@ of specialized LaTeX commands, syntax, and fonts. If you're using such a
package you'll often wish that the distributed syntax/tex.vim would support
it. However, clearly this is impractical. So please consider using the
techniques in |mysyntaxfile-add| to extend or modify the highlighting provided
-by syntax/tex.vim.
+by syntax/tex.vim. Please consider uploading any extensions that you write,
+which typically would go in $HOME/after/syntax/tex/[pkgname].vim, to
+http://vim.sf.net/.
*tex-error*
Tex: Excessive Error Highlighting? ~
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index 2b43166e25..c044ce1bde 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.3. Last change: 2011 Dec 14
+*todo.txt* For Vim version 7.3. Last change: 2011 Dec 30
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,14 +38,31 @@ Go through more coverity reports.
Discussion about canonicalization of Hebrew. (Ron Aaron, 2011 April 10)
+Patch to fix crash with EXITFREE. (Dominique Pelle, 2011 Dec 20)
+
Patch to fix "Console prompts fail to reset the console pager".
Issue 14 on googlecode
Issue 33 on googlecode: feedkeys() leaks memory.
+Patch for Mac using NULL pointer. (Bjorn Winckler, 2011 Dec 18)
+
Patch to support UTF-8 for Hangul. (Shawn Y.H. Kim, 2011 May 1)
Needs more work.
+Issue 43: patch with new C keywords.
+
+When setting 'undofile' while the file is already loaded, but unchanged, try
+to read the undo file. Requires computing a checksum of the text. (Andy
+Wokula)
+Patch from Christian Brabandt, 2011 Dec 22. Dec 24 with test.
+
+Patch for Vim moving to another window when resizing. (Yukihiro Nakadaira,
+2011 Dec 18)
+
+Compilation problem on z/OS, POUND is equal to '#', duplicate case.
+(Stephen Bovy, 2011 Dec 16)
+
Once syntax and other runtime files have been fixed: add "set cp" to
check.vim. Use a function to run both with 'cp' and 'nocp'.
@@ -82,6 +99,10 @@ Patch to highlight cursor line number. (Howard Buchholz (lhb), 2011 Oct 18)
Patch for urxvt mouse support after shell command. (Issue 31)
+When exiting with unsaved changes, selecting an existing file in the file
+dialog, there is no dialog to ask whether the existing file should be
+overwritten. (Felipe G. Nievinski, 2011 Dec 22)
+
7 Setting an option always sets "w_set_curswant", while this is only
required for a few options. Only do it for those options to avoid the
side effect.
@@ -91,6 +112,8 @@ Patch for option in 'cino' to specify more indent for continued conditions.
(Lech Lorens, 2011 Nov 27)
Isn't this already possible?
+Patch for using objcpp file type for headers files. Issue 44.
+
Docs fix for v:register. (Ingo Karkat, 2011 Sep 26, 27)
v:register doesn't work exactly as expected. (David Fishburn, 2011 Sep 20)
@@ -104,6 +127,9 @@ Patch for: (Christian Brabandt, 2011 Aug 24, updated patch)
Patch to add "onselected" callback for completion. (Taro Muraoka, 2011 Sep 24)
+Use a count before "v" and "V" to select that many characters or lines?
+(Kikyous)
+
":tab drop buffer.c" always opens a new tab, also if buffer.c is already in an
open window. (Herb Sitz, 2011 Nov 17)
@@ -135,6 +161,8 @@ characters. Patch by Christian Brabandt, 2011 Oct 11)
Patch for 'transparency' option. (Sergiu Dotenco, 2011 Sep 17)
Only for MS-Windows. No documentation. Do we want this?
+Patch to support cursor shape in Cygwin console. (Ben bgold, 2011 Dec 27)
+
'cursorline' is displayed too short when there are concealed characters and
'list' is set. (Dennis Preiser)
Patch 7.3.116 was the wrong solution.
@@ -472,10 +500,6 @@ Patch to support :undo absolute jump to file save number. (Christian Brabandt,
Patch to use 'foldnextmax' also for "marker" foldmethod. (Arnaud Lacombe, 2011
Jan 7)
-When setting 'undofile' while the file is already loaded, but unchanged, try
-to read the undo file. Requires computing a checksum of the text. (Andy
-Wokula)
-
Bug with 'incsearch' going to wrong line. (Wolfram Kresse, 2009 Aug 17)
Only with "vim -u NONE".
@@ -1055,6 +1079,15 @@ Latest version: 2011 May 18
http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
Version from Guopeng Wen that does this (2010 Dec 27)
+Windows installer should install 32-bit version of right-click handler also on
+64-bit systems. (Brian Cunningham, 2011 Dec 28)
+
+Windows installer could add a "open in new tab of existing Vim" menu entry.
+Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
+Just have two choices, always using one Vim and selecting between using an
+argument list or opening each file in a separate tab.
+(Erik Falor, 2008 May 21, 2008 Jun 26)
+
Windows installer: licence text should not use indent, causes bad word wrap.
(Benjamin Fritz, 2010 Aug 16)
@@ -1215,12 +1248,6 @@ When unloading a buffer in a BufHidden autocommand the hidden flag is reset?
Substituting an area with a line break with almost the same area does change
the Visual area. Can this be fixed? (James Vega, 2006 Sept 15)
-Windows installer could add a "open in new tab of existing Vim" menu entry.
-Gvimext: patch to add "Edit with single Vim &tabbed" menu entry.
-Just have two choices, always using one Vim and selecting between using an
-argument list or opening each file in a separate tab.
-(Erik Falor, 2008 May 21, 2008 Jun 26)
-
GUI: When combining fg en bg make sure they are not equal.
Spell checking: Add a way to specify punctuation characters. Add the
diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt
index 0a025956fb..0e85688d06 100644
--- a/runtime/doc/usr_41.txt
+++ b/runtime/doc/usr_41.txt
@@ -1,4 +1,4 @@
-*usr_41.txt* For Vim version 7.3. Last change: 2011 Jun 19
+*usr_41.txt* For Vim version 7.3. Last change: 2011 Dec 15
VIM USER MANUAL - by Bram Moolenaar
@@ -670,6 +670,12 @@ Floating point computation: *float-functions*
cosh() hyperbolic cosine
tanh() hyperbolic tangent
+Other computation: *bitwise-function*
+ and() bitwise AND
+ invert() bitwise invert
+ or() bitwise OR
+ xor() bitwise XOR
+
Variables: *var-functions*
type() type of a variable
islocked() check if a variable is locked
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 9fc890298f..78ab7a63be 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 7.3. Last change: 2011 Nov 28
+*various.txt* For Vim version 7.3. Last change: 2011 Dec 29
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -136,6 +136,9 @@ g8 Print the hex values of the bytes used in the
then twice the value of the 'scroll' option is used,
otherwise the current window height minus 3 is used.
+ If there is a {count} the 'window' option is set to
+ its value.
+
:z can be used either alone or followed by any of
several punctuation marks. These have the following
effect:
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 90ce86dd3e..f6dce94adf 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2011 Oct 26
+" Last Change: 2011 Dec 28
" Listen very carefully, I will say this only once
if exists("did_load_filetypes")
@@ -2533,6 +2533,10 @@ au BufNewFile,BufRead */etc/yum.repos.d/* call s:StarSetf('dosini')
au BufNewFile,BufRead zsh*,zlog* call s:StarSetf('zsh')
+" Plain text files, needs to be far down to not override others. This avoids
+" the "conf" type being used if there is a line starting with '#'.
+au BufNewFile,BufRead *.txt,*.text setf text
+
" Use the filetype detect plugins. They may overrule any of the previously
" detected filetypes.
diff --git a/runtime/ftplugin/fortran.vim b/runtime/ftplugin/fortran.vim
index 741465da18..948e216f6e 100644
--- a/runtime/ftplugin/fortran.vim
+++ b/runtime/ftplugin/fortran.vim
@@ -1,7 +1,7 @@
" Vim settings file
" Language: Fortran90 (and Fortran95, Fortran77, F and elf90)
-" Version: 0.46
-" Last Change: 2010 July 24
+" Version: 0.47
+" Last Change: 2011 December 28
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www.unb.ca/chem/ajit/>
" Usage: Do :help fortran-plugin from Vim
" Credits:
@@ -12,6 +12,9 @@ if exists("b:did_ftplugin")
finish
endif
+let s:cposet=&cpoptions
+set cpoptions&vim
+
" Don't do other file type settings for this buffer
let b:did_ftplugin = 1
@@ -78,9 +81,6 @@ setlocal fo+=tcql
setlocal include=^\\c#\\=\\s*include\\s\\+
setlocal suffixesadd+=.f95,.f90,.for,.f,.F,.f77,.ftn,.fpp
-let s:cposet=&cpoptions
-set cpoptions-=C
-
" Define patterns for the matchit plugin
if !exists("b:match_words")
let s:notend = '\%(\<end\s\+\)\@<!'
diff --git a/runtime/ftplugin/kwt.vim b/runtime/ftplugin/kwt.vim
index 7be64229cd..6d4b8fdbf6 100644
--- a/runtime/ftplugin/kwt.vim
+++ b/runtime/ftplugin/kwt.vim
@@ -1,12 +1,13 @@
" Vim filetype plugin file
" Language: Kimwitu++
-" Maintainer: Michael Piefel <piefel@informatik.hu-berlin.de>
-" Last Change: 16 August 2001
+" Maintainer: Michael Piefel <entwurf@piefel.de>
+" Last Change: 10 December 2011
" Behaves almost like C++
runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
-set cpo-=C
+let s:cpo_save = &cpo
+set cpo&vim
" Limit the browser to related files
if has("gui_win32") && !exists("b:browsefilter")
@@ -18,3 +19,6 @@ endif
" Set the errorformat for the Kimwitu++ compiler
set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/ftplugin/spec.vim b/runtime/ftplugin/spec.vim
index 3b1d70a486..b84ed63fbf 100644
--- a/runtime/ftplugin/spec.vim
+++ b/runtime/ftplugin/spec.vim
@@ -1,13 +1,16 @@
" Plugin to update the %changelog section of RPM spec files
" Filename: spec.vim
" Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com>
-" Last Change: Wed, 10 Apr 2002 16:28:52 -0300
+" Last Change: 2011 Dec 25 by Thilo Six
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
+let s:cpo_save = &cpo
+set cpo&vim
+
if !exists("no_plugin_maps") && !exists("no_spec_maps")
if !hasmapto("<Plug>SpecChangelog")
map <buffer> <LocalLeader>c <Plug>SpecChangelog
@@ -166,3 +169,6 @@ let b:match_words =
\ '^Name:^%description:^%clean:^%setup:^%build:^%install:^%files:' .
\ '^%package:^%preun:^%postun:^%changelog'
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
diff --git a/runtime/indent/fortran.vim b/runtime/indent/fortran.vim
index a651c09c6b..e76c64b671 100644
--- a/runtime/indent/fortran.vim
+++ b/runtime/indent/fortran.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: Fortran95 (and Fortran90, Fortran77, F and elf90)
-" Version: 0.39
-" Last Change: 2011 May 30
+" Version: 0.40
+" Last Change: 2011 Dec. 28
" Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www.unb.ca/chem/ajit/>
" Usage: Do :help fortran-indent from Vim
@@ -11,6 +11,9 @@ if exists("b:did_indent")
endif
let b:did_indent = 1
+let s:cposet=&cpoptions
+set cpoptions&vim
+
setlocal indentkeys+==~end,=~case,=~if,=~else,=~do,=~where,=~elsewhere,=~select
setlocal indentkeys+==~endif,=~enddo,=~endwhere,=~endselect,=~elseif
setlocal indentkeys+==~type,=~interface,=~forall,=~associate,=~block,=~enum
@@ -67,9 +70,6 @@ else
endif
endif
-let s:cposet=&cpoptions
-set cpoptions-=C
-
function FortranGetIndent(lnum)
let ind = indent(a:lnum)
let prevline=getline(a:lnum)
diff --git a/runtime/indent/gitolite.vim b/runtime/indent/gitolite.vim
index b95cf0fa23..33b7c9f312 100644
--- a/runtime/indent/gitolite.vim
+++ b/runtime/indent/gitolite.vim
@@ -2,7 +2,7 @@
" Language: gitolite configuration
" URL: https://github.com/tmatilai/gitolite.vim
" Maintainer: Teemu Matilainen <teemu.matilainen@iki.fi>
-" Last Change: 2011-11-01
+" Last Change: 2011-12-24
if exists("b:did_indent")
finish
@@ -18,6 +18,9 @@ if exists("*GetGitoliteIndent")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
function! GetGitoliteIndent()
let prevln = prevnonblank(v:lnum-1)
let pline = getline(prevln)
@@ -37,3 +40,6 @@ function! GetGitoliteIndent()
return 0
endif
endfunction
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/indent/sdl.vim b/runtime/indent/sdl.vim
index 9dde2c3f59..b5e535eeac 100644
--- a/runtime/indent/sdl.vim
+++ b/runtime/indent/sdl.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: SDL
-" Maintainer: Michael Piefel <piefel@informatik.hu-berlin.de>
-" Last Change: 2001 Sep 17
+" Maintainer: Michael Piefel <entwurf@piefel.de>
+" Last Change: 10 December 2011
" Shamelessly stolen from the Vim-Script indent file
@@ -19,7 +19,8 @@ if exists("*GetSDLIndent")
" finish
endif
-set cpo-=C
+let s:cpo_save = &cpo
+set cpo&vim
function! GetSDLIndent()
" Find a non-blank line above the current line.
@@ -86,4 +87,7 @@ function! GetSDLIndent()
return ind
endfunction
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
" vim:sw=2
diff --git a/runtime/indent/tex.vim b/runtime/indent/tex.vim
index 0758a70277..dcfbccdbe5 100644
--- a/runtime/indent/tex.vim
+++ b/runtime/indent/tex.vim
@@ -2,7 +2,7 @@
" Language: LaTeX
" Maintainer: Zhou YiChao <broken.zhou@gmail.com>
" Created: Sat, 16 Feb 2002 16:50:19 +0100
-" Last Change: Tue, 25 Sep 2011
+" Last Change: 2011 Dec 24
" Last Update: 25th Sep 2002, by LH :
" (*) better support for the option
" (*) use some regex instead of several '||'.
@@ -37,42 +37,42 @@
"
" If this variable is unset or non-zero, it will use smartindent-like style
" for "{}" and "[]"
-"
+"
" * g:tex_indent_items
"
" If this variable is set, item-environments are indented like Emacs does
" it, i.e., continuation lines are indented with a shiftwidth.
-"
+"
" NOTE: I've already set the variable below; delete the corresponding line
" if you don't like this behaviour.
"
" Per default, it is unset.
-"
+"
" set unset
" ----------------------------------------------------------------
-" \begin{itemize} \begin{itemize}
+" \begin{itemize} \begin{itemize}
" \item blablabla \item blablabla
-" bla bla bla bla bla bla
+" bla bla bla bla bla bla
" \item blablabla \item blablabla
-" bla bla bla bla bla bla
-" \end{itemize} \end{itemize}
+" bla bla bla bla bla bla
+" \end{itemize} \end{itemize}
"
"
" * g:tex_items
"
-" A list of tokens to be considered as commands for the beginning of an item
-" command. The tokens should be separated with '\|'. The initial '\' should
+" A list of tokens to be considered as commands for the beginning of an item
+" command. The tokens should be separated with '\|'. The initial '\' should
" be escaped. The default is '\\bibitem\|\\item'.
"
" * g:tex_itemize_env
-"
-" A list of environment names, separated with '\|', where the items (item
-" commands matching g:tex_items) may appear. The default is
+"
+" A list of environment names, separated with '\|', where the items (item
+" commands matching g:tex_items) may appear. The default is
" 'itemize\|description\|enumerate\|thebibliography'.
"
" * g:tex_noindent_env
"
-" A list of environment names. separated with '\|', where no indentation is
+" A list of environment names. separated with '\|', where no indentation is
" required. The default is 'document\|verbatim'.
"
" * g:tex_indent_and
@@ -82,7 +82,7 @@
" Note that this feature need to search back some line, so vim may become
" a little slow.
"
-" }}}
+" }}}
if exists("b:did_indent")
finish
@@ -104,7 +104,7 @@ if g:tex_indent_items
let g:tex_itemize_env = 'itemize\|description\|enumerate\|thebibliography'
endif
if !exists('g:tex_items')
- let g:tex_items = '\\bibitem\|\\item'
+ let g:tex_items = '\\bibitem\|\\item'
endif
else
let g:tex_items = ''
@@ -125,6 +125,8 @@ let g:tex_items = '^\s*' . g:tex_items
if exists("*GetTeXIndent") | finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
function GetTeXIndent()
" Find a non-blank line above the current line.
@@ -137,7 +139,7 @@ function GetTeXIndent()
" At the start of the file use zero indent.
if lnum == 0
- return 0
+ return 0
endif
let line = getline(lnum) " last line
@@ -159,7 +161,7 @@ function GetTeXIndent()
if lnum == 0
- return 0
+ return 0
endif
let ind = indent(lnum)
@@ -171,7 +173,7 @@ function GetTeXIndent()
" Add a 'shiftwidth' after beginning of environments.
" Don't add it for \begin{document} and \begin{verbatim}
- ""if line =~ '^\s*\\begin{\(.*\)}' && line !~ 'verbatim'
+ ""if line =~ '^\s*\\begin{\(.*\)}' && line !~ 'verbatim'
" LH modification : \begin does not always start a line
" ZYC modification : \end after \begin won't cause wrong indent anymore
if line =~ '\\begin{.*}' && line !~ g:tex_noindent_env
@@ -247,4 +249,7 @@ function GetTeXIndent()
return ind
endfunction
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
" vim: set sw=4 textwidth=80:
diff --git a/runtime/syntax/abel.vim b/runtime/syntax/abel.vim
index fde9be3dda..05e8dac913 100644
--- a/runtime/syntax/abel.vim
+++ b/runtime/syntax/abel.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: ABEL
-" Maintainer: John Cook <john.cook@kla-tencor.com>
-" Last Change: 2001 Sep 2
+" Maintainer: John Cook <johncook3@gmail.com>
+" Last Change: 2011 Dec 27
" For version 5.x: Clear all syntax items
" For version 6.x: Quit when a syntax file was already loaded
@@ -11,6 +11,9 @@ elseif exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
" this language is oblivious to case
syn case ignore
@@ -164,4 +167,8 @@ if version >= 508 || !exists("did_abel_syn_inits")
endif
let b:current_syntax = "abel"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
+
" vim:ts=8
diff --git a/runtime/syntax/art.vim b/runtime/syntax/art.vim
index c1faddb1ef..855119810b 100644
--- a/runtime/syntax/art.vim
+++ b/runtime/syntax/art.vim
@@ -2,12 +2,15 @@
" Language: ART-IM and ART*Enterprise
" Maintainer: Dorai Sitaram <ds26@gte.com>
" URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html
-" Last Change: Nov 6, 2002
+" Last Change: 2011 Dec 28 by Thilo Six
if exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
syn case ignore
syn keyword artspform => and assert bind
@@ -42,3 +45,6 @@ hi def link artspform statement
hi def link artvariable function
let b:current_syntax = "art"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save
diff --git a/runtime/syntax/ayacc.vim b/runtime/syntax/ayacc.vim
index be91e2f7ef..fedd0e80a0 100644
--- a/runtime/syntax/ayacc.vim
+++ b/runtime/syntax/ayacc.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: AYacc
" Maintainer: Mathieu Clabaut <mathieu.clabaut@free.fr>
-" LastChange: 02 May 2001
+" LastChange: 2011 Dec 25
" Original: Yacc, maintained by Dr. Charles E. Campbell, Jr.
" Comment: Replaced sourcing c.vim file by ada.vim and rename yacc*
" in ayacc*
@@ -22,6 +22,9 @@ else
unlet b:current_syntax
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
" Clusters
syn cluster ayaccActionGroup contains=ayaccDelim,cInParen,cTodo,cIncluded,ayaccDelim,ayaccCurlyError,ayaccUnionCurly,ayaccUnion,cUserLabel,cOctalZero,cCppOut2,cCppSkip,cErrInBracket,cErrInParen,cOctalError
syn cluster ayaccUnionGroup contains=ayaccKey,cComment,ayaccCurly,cType,cStructure,cStorageClass,ayaccUnionCurly
@@ -83,4 +86,6 @@ endif
let b:current_syntax = "ayacc"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: ts=15
diff --git a/runtime/syntax/basic.vim b/runtime/syntax/basic.vim
index ee500178c9..c72032da27 100644
--- a/runtime/syntax/basic.vim
+++ b/runtime/syntax/basic.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: BASIC
" Maintainer: Allan Kelly <allan@fruitloaf.co.uk>
-" Last Change: Tue Sep 14 14:24:23 BST 1999
+" Last Change: 2011 Dec 25 by Thilo Six
" First version based on Micro$soft QBASIC circa 1989, as documented in
" 'Learn BASIC Now' by Halvorson&Rygmyr. Microsoft Press 1989.
@@ -16,6 +16,9 @@ elseif exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
" A bunch of useful BASIC keywords
syn keyword basicStatement BEEP beep Beep BLOAD bload Bload BSAVE bsave Bsave
syn keyword basicStatement CALL call Call ABSOLUTE absolute Absolute
@@ -171,4 +174,6 @@ endif
let b:current_syntax = "basic"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: ts=8
diff --git a/runtime/syntax/bib.vim b/runtime/syntax/bib.vim
index cf4bba84f6..3743fb0dc6 100644
--- a/runtime/syntax/bib.vim
+++ b/runtime/syntax/bib.vim
@@ -2,7 +2,7 @@
" Language: BibTeX (bibliographic database format for (La)TeX)
" Maintainer: Bernd Feige <Bernd.Feige@gmx.net>
" Filenames: *.bib
-" Last Change: Mar 23, 2011
+" Last Change: 2011 Dec 25