diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-03-11 15:57:40 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-03-11 15:57:40 +0100 |
commit | 84f7235bdbcc58876869ba8047530ef60443061a (patch) | |
tree | 5092ec85f621ee24d84ba29eeebbbc29ce40aac4 /runtime | |
parent | 7c578d3c3f501c0dd86c48aad6816a6ce6e3fc77 (diff) | |
download | vim-84f7235bdbcc58876869ba8047530ef60443061a.zip |
Updated runtime files. Add Dutch translations.
Diffstat (limited to 'runtime')
46 files changed, 157 insertions, 77 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 44d2d62c4..7811cfe18 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -700,7 +700,9 @@ QuickFixCmdPre Before a quickfix command is run (|:make|, |:lmake|, |:grep|, |:lgrep|, |:grepadd|, |:lgrepadd|, |:vimgrep|, |:lvimgrep|, |:vimgrepadd|, |:lvimgrepadd|, |:cscope|, - |:helpgrep|, |:lhelpgrep|). + |:cfile|, |:cgetfile|, |:caddfile|, |:lfile|, + |:lgetfile|, |:laddfile|, |:helpgrep|, + |:lhelpgrep|). The pattern is matched against the command being run. When |:grep| is used but 'grepprg' is set to "internal" it still matches "grep". diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7de0e9a31..ce4c41b7e 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.3. Last change: 2012 Jan 28 +*eval.txt* For Vim version 7.3. Last change: 2012 Mar 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2744,13 +2744,15 @@ exp({expr}) *exp()* {only available when compiled with the |+float| feature} -expand({expr} [, {flag}]) *expand()* +expand({expr} [, {nosuf} [, {list}]]) *expand()* Expand wildcards and the following special keywords in {expr}. - The result is a String. 'wildignorecase' applies. + 'wildignorecase' applies. - When there are several matches, they are separated by <NL> - characters. [Note: in version 5.0 a space was used, which - caused problems when a file name contains a space] + If {list} is given and it is non-zero, a List will be returned. + Otherwise the result is a String and when there are several + matches, they are separated by <NL> characters. [Note: in + version 5.0 a space was used, which caused problems when a + file name contains a space] If the expansion fails, the result is an empty string. A name for a non-existing file is not included. @@ -3454,18 +3456,23 @@ getwinvar({winnr}, {varname}) *getwinvar()* :let list_is_on = getwinvar(2, '&list') :echo "myvar = " . getwinvar(1, 'myvar') < -glob({expr} [, {flag}]) *glob()* +glob({expr} [, {nosuf} [, {list}]]) *glob()* Expand the file wildcards in {expr}. See |wildcards| for the use of special characters. - The result is a String. - When there are several matches, they are separated by <NL> - characters. - Unless the optional {flag} argument is given and is non-zero, + + Unless the optional {nosuf} argument is given and is non-zero, the 'suffixes' and 'wildignore' options apply: Names matching one of the patterns in 'wildignore' will be skipped and 'suffixes' affect the ordering of matches. 'wildignorecase' always applies. - If the expansion fails, the result is an empty string. + + When {list} is present and it is non-zero the result is a List + with all matching files. The advantage of using a List is, + you also get filenames containing newlines correctly. + Otherwise the result is a String and when there are several + matches, they are separated by <NL> characters. + + If the expansion fails, the result is an empty String or List. A name for a non-existing file is not included. For most systems backticks can be used to get files names from @@ -6678,9 +6685,9 @@ Hint: If you distribute a bunch of scripts you can pack them together with the ============================================================================== 6. Curly braces names *curly-braces-names* -Wherever you can use a variable, you can use a "curly braces name" variable. -This is a regular variable name with one or more expressions wrapped in braces -{} like this: > +In most places where you can use a variable, you can use a "curly braces name" +variable. This is a regular variable name with one or more expressions +wrapped in braces {} like this: > my_{adjective}_variable When Vim encounters this, it evaluates the expression inside the braces, puts @@ -6716,6 +6723,11 @@ Example: > This would call the function "my_func_whizz(parameter)". +This does NOT work: > + :let i = 3 + :let @{i} = '' " error + :echo @{i} " error + ============================================================================== 7. Commands *expression-commands* diff --git a/runtime/doc/mbyte.txt b/runtime/doc/mbyte.txt index e8d067600..c4ea4e87d 100644 --- a/runtime/doc/mbyte.txt +++ b/runtime/doc/mbyte.txt @@ -1,4 +1,4 @@ -*mbyte.txt* For Vim version 7.3. Last change: 2011 Oct 15 +*mbyte.txt* For Vim version 7.3. Last change: 2012 Feb 29 VIM REFERENCE MANUAL by Bram Moolenaar et al. @@ -857,7 +857,7 @@ Use the RPM or port for your system. USING XIM *multibyte-input* *E284* *E286* *E287* *E288* - *E285* *E291* *E292* *E290* *E289* + *E285* *E289* Note that Display and Input are independent. It is possible to see your language even though you have no input method for it. But when your Display diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index 74585d7c3..4b8ff6e03 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.3. Last change: 2012 Feb 22 +*todo.txt* For Vim version 7.3. Last change: 2012 Mar 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -44,9 +44,6 @@ Stack trace of crash: http://vpaste.net/GBt9S 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'. -Undo broken when pasting close to the last line. (Andrey Radev, 2012 Feb 14) -Patch by Christian Brabandt, 2012 Feb 14. - GTK: problem with 'L' in 'guioptions' changing the window width. (Aaron Cornelius, 2012 Feb 6) @@ -54,24 +51,14 @@ Win32: When a directory name contains an exclamation mark, completion doesn't complete the contents of the directory. No escaping for the "!"? (Jan Stocker, 2012 Jan 5) -Patch to speed up ga_grow(). (Dominique Pelle, 2012 Feb 13) - -Patch for "tab drop hoge" moving current window. (Higashi, 2012 Jan 31) -":tab drop buffer.c" always opens a new tab, also if buffer.c is already in an -open window. (Herb Sitz, 2011 Nov 17) -":tab drop filename" doesn't work nicely when "filename" is open in a window -in another tab. (Tony Mechelynck, 2009 Feb 13) - -Patch to make InsertCharPre work better. (Yasuhiro Matsumoto, 2011 Oct 21) +Issue 54: document behavior of -complete, also expands arg. -Patch to fix closed folds with "loadview". (Xavier de Gaye, 2011 Nov 25) +Syntax update problem in one buffer opened in two windows, bottom window is +not correctly updated. (Paul Harris, 2012 Feb 27) Patch to add getsid(). (Tyru, 2011 Oct 2) Do we want this? Update Oct 4. Or use expand('<sid>')? -Patch for glob() returning a list. (Christian Brabandt, 2011 Aug 24, second -one) - Win32: When the taskbar is at the top of the screen creating the tabbar causes the window to move unnecessarily. (William E. Skeith III, 2012 Jan 12) Patch: 2012 Jan 13 Needs more work (2012 Feb 2) @@ -84,12 +71,6 @@ URXVT: - Use urxvt mouse support also in xterm. Explanations: http://www.midnight-commander.org/ticket/2662 -Patch for using QuickFixCmdPre for more commands. (Marcin Szamotulski, 2012 -Feb 1, update Feb 2) - -Patch for pasting in the Ex command line is slow. (Dominique Pelle, 2012 Feb -19) - When running Vim in silent ex mode, an existing swapfile causes Vim to wait for a user action without a prompt. (Maarten Billemont, 2012 Feb 3) Do give the prompt? Quit with an error? @@ -107,6 +88,9 @@ Recognize objcpp. (Austin Ziegler, 2012 Feb 15) side effect. Patch by Kana Natsuno, 2011 Nov 12. +Using Ctrl-] in a mapping does not expand abbreviations. Patch by Christian +Brabandt, 2012 Mar 2. + Patch to fix member confusion in Lua interface. (Taro Muraoka, 2012 Jan 8) Update Jan 9. Carvalho merged the patch: New version 2012 Jan 19. @@ -137,6 +121,8 @@ Name it "CompleteFuncDone". Patch for Make_mvc.mak and Make_ming.mak for Ruby support. (Yasuhiro Matsumoto, 2012 Jan 30) +Patch to add completion for :history command. (Dominique Pelle, 2012 Feb 26) + Use a count before "v" and "V" to select that many characters or lines? (Kikyous) @@ -197,6 +183,9 @@ Syntax region with 'concealends' and a 'cchar' value, 'conceallevel' set to 2, only one of the two ends gets the cchar displayed. (Brett Stahlman, 2010 Aug 21, Ben Fritz, 2010 Sep 14) +Win32: Does building a 64 bit version with VC9 give warnings for int +conversions? (Mike Williams) + Win32: Patch to use task dialogs when available. (Sergiu Dotenco, 2011 Sep 17) New feature, requires testing. Made some remarks. @@ -251,6 +240,10 @@ Bug: Windows 7 64 bit system freezes when 'clipboard' set to "unnamed" and doing ":g/test/d". Putting every delete on the clipboard? (Robert Chan, 2011 Jun 17) +When there is a ">" in a line that "gq" wraps to the start of the next line, +then the following line will pick it up as a leader. Should get the leader +from the first line, not a wrapped line. (Matt Ackeret, 2012 Feb 27) + Using ":break" or something else that stops executing commands inside a ":finally" does not rethrow a previously uncaught exception. (ZyX, 2010 Oct 15) diff --git a/runtime/doc/undo.txt b/runtime/doc/undo.txt index b1652374c..33eb71a91 100644 --- a/runtime/doc/undo.txt +++ b/runtime/doc/undo.txt @@ -1,4 +1,4 @@ -*undo.txt* For Vim version 7.3. Last change: 2012 Jan 28 +*undo.txt* For Vim version 7.3. Last change: 2012 Mar 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -250,7 +250,7 @@ detect if an undo file is no longer synchronized with the file it was written for (with a hash of the file contents) and ignore it when the file was changed after the undo file was written, to prevent corruption. An undo file is also ignored if its owner differs from the owner of the edited file. Set 'verbose' -to get a message about that. +to get a message about that when opening a file. Undo files are normally saved in the same directory as the file. This can be changed with the 'undodir' option. diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 6f8e2c69d..b9773b714 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: 2012 Feb 05 +" Last Change: 2012 Feb 24 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -2317,6 +2317,9 @@ au BufNewFile,BufRead fglrxrc setf xml au BufNewFile,BufRead *.xlf setf xml au BufNewFile,BufRead *.xliff setf xml +" XML User Interface Language +au BufNewFile,BufRead *.xul setf xml + " X11 xmodmap (also see below) au BufNewFile,BufRead *Xmodmap setf xmodmap diff --git a/runtime/ftplugin/abaqus.vim b/runtime/ftplugin/abaqus.vim index 873b9bfae..cbebcbfa4 100644 --- a/runtime/ftplugin/abaqus.vim +++ b/runtime/ftplugin/abaqus.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Abaqus finite element input file (www.abaqus.com) " Maintainer: Carl Osterwisch <osterwischc@asme.org> -" Last Change: 2008 Oct 5 +" Last Change: 2012 Mar 11 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") | finish | endif @@ -87,3 +87,4 @@ let b:undo_ftplugin .= "|unmap <buffer> [[|unmap <buffer> ]]" " Restore saved compatibility options let &cpoptions = s:cpo_save +unlet s:cpo_save diff --git a/runtime/ftplugin/ant.vim b/runtime/ftplugin/ant.vim index 648fca1be..590585889 100644 --- a/runtime/ftplugin/ant.vim +++ b/runtime/ftplugin/ant.vim @@ -41,3 +41,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/aspvbs.vim b/runtime/ftplugin/aspvbs.vim index 2b841efcf..660dab468 100644 --- a/runtime/ftplugin/aspvbs.vim +++ b/runtime/ftplugin/aspvbs.vim @@ -57,3 +57,4 @@ let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter | " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/config.vim b/runtime/ftplugin/config.vim index df607b1b1..7fde42ebf 100644 --- a/runtime/ftplugin/config.vim +++ b/runtime/ftplugin/config.vim @@ -39,3 +39,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . b:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/csc.vim b/runtime/ftplugin/csc.vim index ac0208810..3a09c3bf8 100644 --- a/runtime/ftplugin/csc.vim +++ b/runtime/ftplugin/csc.vim @@ -24,3 +24,4 @@ let b:undo_ftplugin = "unlet! b:match_words" " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/csh.vim b/runtime/ftplugin/csh.vim index 3f89c72c2..4ae09f91b 100644 --- a/runtime/ftplugin/csh.vim +++ b/runtime/ftplugin/csh.vim @@ -45,3 +45,4 @@ let b:undo_ftplugin = "setlocal commentstring< formatoptions<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/dtd.vim b/runtime/ftplugin/dtd.vim index eed5ca6ac..6c08f6691 100644 --- a/runtime/ftplugin/dtd.vim +++ b/runtime/ftplugin/dtd.vim @@ -37,3 +37,4 @@ let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/erlang.vim b/runtime/ftplugin/erlang.vim index af4e910b2..2bbc345b4 100644 --- a/runtime/ftplugin/erlang.vim +++ b/runtime/ftplugin/erlang.vim @@ -19,6 +19,9 @@ else let s:did_function_definitions = 1 endif +let s:cpo_save = &cpo +set cpo&vim + if !exists('g:erlang_keywordprg') let g:erlang_keywordprg = 'erl -man' endif @@ -76,3 +79,9 @@ function ErlangFoldText() endfunction call s:SetErlangOptions() + +let b:undo_ftplugin = "setlocal foldmethod< foldexpr< foldtext<" + \ . " comments< commentstring< formatoptions<" + +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/ftplugin/eruby.vim b/runtime/ftplugin/eruby.vim index 7c19a09aa..870f45e07 100644 --- a/runtime/ftplugin/eruby.vim +++ b/runtime/ftplugin/eruby.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: eRuby " Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2010 Apr 15 +" Last Change: 2012 Mar 11 " URL: http://vim-ruby.rubyforge.org " Anon CVS: See above site " Release Coordinator: Doug Kearns <dougkearns@gmail.com> @@ -100,5 +100,6 @@ let b:undo_ftplugin = "setl cms< " \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin let &cpo = s:save_cpo +unlet s:save_cpo " vim: nowrap sw=2 sts=2 ts=8: diff --git a/runtime/ftplugin/haml.vim b/runtime/ftplugin/haml.vim index b2c1eca3f..05be7f8b7 100644 --- a/runtime/ftplugin/haml.vim +++ b/runtime/ftplugin/haml.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Haml " Maintainer: Tim Pope <vimNOSPAM@tpope.org> -" Last Change: 2010 May 21 +" Last Change: 2012 Mar 11 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -63,5 +63,6 @@ let b:undo_ftplugin = "setl cms< com< " \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin let &cpo = s:save_cpo +unlet s:save_cpo " vim:set sw=2: diff --git a/runtime/ftplugin/hamster.vim b/runtime/ftplugin/hamster.vim index ddb40f928..c23adc423 100644 --- a/runtime/ftplugin/hamster.vim +++ b/runtime/ftplugin/hamster.vim @@ -12,7 +12,7 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 -let cpo_save = &cpo +let s:cpo_save = &cpo set cpo-=C let b:undo_ftplugin = "setl fo< com< tw< commentstring<" @@ -57,5 +57,6 @@ if exists("loaded_matchit") endif setlocal ignorecase -let &cpo = cpo_save +let &cpo = s:cpo_save +unlet s:cpo_save setlocal cpo+=M " makes \%( match \) diff --git a/runtime/ftplugin/html.vim b/runtime/ftplugin/html.vim index 5f1384b3e..418da06a6 100644 --- a/runtime/ftplugin/html.vim +++ b/runtime/ftplugin/html.vim @@ -88,3 +88,4 @@ let b:undo_ftplugin = "setlocal commentstring< matchpairs< omnifunc< comments< f " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/initex.vim b/runtime/ftplugin/initex.vim index 4f35d04c7..0ee3e8d89 100644 --- a/runtime/ftplugin/initex.vim +++ b/runtime/ftplugin/initex.vim @@ -34,5 +34,6 @@ let &l:include = '\\input' setlocal suffixesadd=.tex let &cpo = s:save_cpo +unlet s:save_cpo " vim:sts=2:sw=2: diff --git a/runtime/ftplugin/java.vim b/runtime/ftplugin/java.vim index 6c7b3671c..292cb6b16 100644 --- a/runtime/ftplugin/java.vim +++ b/runtime/ftplugin/java.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Java " Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net> -" Last Change: 20 Jan 2009 +" Last Change: 2012 Mar 11 " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin if exists("b:did_ftplugin") | finish | endif @@ -48,3 +48,4 @@ let b:undo_ftplugin = "setlocal suffixes< suffixesadd<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/jsp.vim b/runtime/ftplugin/jsp.vim index 9c0eb9687..fbba863b3 100644 --- a/runtime/ftplugin/jsp.vim +++ b/runtime/ftplugin/jsp.vim @@ -64,3 +64,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/lisp.vim b/runtime/ftplugin/lisp.vim index 589a600b5..dcc248c9c 100644 --- a/runtime/ftplugin/lisp.vim +++ b/runtime/ftplugin/lisp.vim @@ -4,7 +4,7 @@ " URL: http://sites.google.com/site/khorser/opensource/vim " Original author: Dorai Sitaram <ds26@gte.com> " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html -" Last Change: Jan 9, 2012 +" Last Change: Mar 5, 2012 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -24,3 +24,5 @@ setl lisp " e.g. insertion of ;;; and ;; on normal "O" or "o" when staying in comment setl comments^=:;;;,:;;,sr:#\|,mb:\|,ex:\|# setl formatoptions+=croql + +let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lisp<" diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim index fc581db7c..3454a4d69 100644 --- a/runtime/ftplugin/lua.vim +++ b/runtime/ftplugin/lua.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file. " Language: Lua 4.0+ " Maintainer: Max Ischenko <mfi@ukr.net> -" Last Change: 2011 Dec 10 by Thilo Six +" Last Change: 2012 Mar 07 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -38,3 +38,5 @@ endif " exists("loaded_matchit") let &cpo = s:cpo_save unlet s:cpo_save + +let b:undo_ftplugin = "setlocal fo< com< cms< suffixesadd<" diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 242a7712c..eadabf883 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: SungHyun Nam <goweol@gmail.com> -" Last Change: 2011 Jul 25 +" Last Change: 2012 Mar 6 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -35,6 +35,8 @@ if &filetype == "man" nnoremap <buffer> <c-t> :call <SID>PopPage()<CR> endif + let b:undo_ftplugin = "setlocal iskeyword<" + endif if exists(":Man") != 2 diff --git a/runtime/ftplugin/matlab.vim b/runtime/ftplugin/matlab.vim index 1800dc8a6..6bfb3d761 100644 --- a/runtime/ftplugin/matlab.vim +++ b/runtime/ftplugin/matlab.vim @@ -25,6 +25,4 @@ let b:undo_ftplugin = "setlocal suffixesadd< suffixes< " \ . "| unlet! b:match_words" let &cpo = s:save_cpo - - - +unlet s:save_cpo diff --git a/runtime/ftplugin/occam.vim b/runtime/ftplugin/occam.vim index ed2c4f4ea..9806318ef 100644 --- a/runtime/ftplugin/occam.vim +++ b/runtime/ftplugin/occam.vim @@ -37,3 +37,8 @@ if has("gui_win32") && !exists("b:browsefilter") endif "}}} +"{{{ Undo settings +let b:undo_ftplugin = "setlocal shiftwidth< softtabstop< expandtab<" + \ . " formatoptions< comments< textwidth<" + \ . "| unlet! b:browsefiler" +"}}} diff --git a/runtime/ftplugin/perl.vim b/runtime/ftplugin/perl.vim index 1d948535a..fbfc0e5f8 100644 --- a/runtime/ftplugin/perl.vim +++ b/runtime/ftplugin/perl.vim @@ -2,7 +2,7 @@ " Language: Perl " Maintainer: Andy Lester <andy@petdance.com> " URL: http://github.com/petdance/vim-perl -" Last Change: 2009-08-14 +" Last Change: 2012 Mar 11 if exists("b:did_ftplugin") | finish | endif let b:did_ftplugin = 1 @@ -69,3 +69,4 @@ let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/perl6.vim b/runtime/ftplugin/perl6.vim index 14ab1e9ca..77238ed00 100644 --- a/runtime/ftplugin/perl6.vim +++ b/runtime/ftplugin/perl6.vim @@ -2,7 +2,7 @@ " Language: Perl 6 " Maintainer: Andy Lester <andy@petdance.com> " URL: http://github.com/petdance/vim-perl/tree/master -" Last Change: 2010-08-10 +" Last Change: 2012 Mar 11 " Contributors: Hinrik Örn Sigurðsson <hinrik.sig@gmail.com> " " Based on ftplugin/perl.vim by Dan Sharp <dwsharp at hotmail dot com> @@ -46,3 +46,4 @@ let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isk<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/php.vim b/runtime/ftplugin/php.vim index f59cf122f..93de5b90f 100644 --- a/runtime/ftplugin/php.vim +++ b/runtime/ftplugin/php.vim @@ -80,3 +80,4 @@ let b:undo_ftplugin = "setlocal commentstring< include< omnifunc<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/plaintex.vim b/runtime/ftplugin/plaintex.vim index 5862d00bb..9e0e40268 100644 --- a/runtime/ftplugin/plaintex.vim +++ b/runtime/ftplugin/plaintex.vim @@ -32,5 +32,6 @@ if exists("loaded_matchit") endif " exists("loaded_matchit") let &cpo = s:save_cpo +unlet s:save_cpo " vim:sts=2:sw=2: diff --git a/runtime/ftplugin/rpl.vim b/runtime/ftplugin/rpl.vim index 5ddf2c1a0..909e141cc 100644 --- a/runtime/ftplugin/rpl.vim +++ b/runtime/ftplugin/rpl.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: RPL/2 " Maintainer: Joël BERTRAND <rpl2@free.fr> -" Last Change: 2005 Mar 28 +" Last Change: 2012 Mar 07 " Version: 0.1 " Only do this when not done yet for this buffer @@ -18,3 +18,5 @@ setlocal fo-=t fo+=croql " Set 'comments' to format dashed lists in comments. setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// + +let b:undo_ftplugin = "setlocal fo< comments<" diff --git a/runtime/ftplugin/scheme.vim b/runtime/ftplugin/scheme.vim index 44c776af9..9b271936e 100644 --- a/runtime/ftplugin/scheme.vim +++ b/runtime/ftplugin/scheme.vim @@ -4,7 +4,7 @@ " URL: http://sites.google.com/site/khorser/opensource/vim " Original author: Dorai Sitaram <ds26@gte.com> " Original URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html -" Last Change: Jan 9, 2012 +" Last Change: Mar 5, 2012 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -43,3 +43,5 @@ if exists("b:is_chicken") || exists("is_chicken") setl lispwords+=define-values,opt-lambda,case-lambda,syntax-rules,with-syntax,syntax-case setl lispwords+=cond-expand,and-let*,foreign-lambda,foreign-lambda* endif + +let b:undo_ftplugin = "setlocal comments< define< formatoptions< iskeyword< lispwords< lisp<" diff --git a/runtime/ftplugin/sgml.vim b/runtime/ftplugin/sgml.vim index a07d31f08..bf63efbf1 100644 --- a/runtime/ftplugin/sgml.vim +++ b/runtime/ftplugin/sgml.vim @@ -37,3 +37,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim index 076b5efda..593fcec92 100644 --- a/runtime/ftplugin/sh.vim +++ b/runtime/ftplugin/sh.vim @@ -36,3 +36,4 @@ let b:undo_ftplugin = "setlocal cms< | unlet! b:browsefilter b:match_words" " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/spec.vim b/runtime/ftplugin/spec.vim index b84ed63fb..9778e1cce 100644 --- a/runtime/ftplugin/spec.vim +++ b/runtime/ftplugin/spec.vim @@ -1,7 +1,7 @@ " Plugin to update the %changelog section of RPM spec files " Filename: spec.vim " Maintainer: Gustavo Niemeyer <niemeyer@conectiva.com> -" Last Change: 2011 Dec 25 by Thilo Six +" Last Change: 2012 Mar 07 if exists("b:did_ftplugin") finish @@ -172,3 +172,4 @@ let b:match_words = let &cpo = s:cpo_save unlet s:cpo_save +let b:undo_ftplugin = "unlet! b:match_ignorecase b:match_words" diff --git a/runtime/ftplugin/sql.vim b/runtime/ftplugin/sql.vim index 7c6864a0c..f6084b703 100644 --- a/runtime/ftplugin/sql.vim +++ b/runtime/ftplugin/sql.vim @@ -2,7 +2,7 @@ " Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase) " Version: 8.0 " Maintainer: David Fishburn <dfishburn dot vim at gmail dot com> -" Last Change: 2011 Apr 01 +" Last Change: 2012 Mar 11 " Download: http://vim.sourceforge.net/script.php?script_id=454 " For more details please use: @@ -490,6 +490,7 @@ if exists('&omnifunc') endif let &cpo = s:save_cpo +unlet s:save_cpo " vim:sw=4: diff --git a/runtime/ftplugin/svg.vim b/runtime/ftplugin/svg.vim index f8a0d6200..8fff6ea32 100644 --- a/runtime/ftplugin/svg.vim +++ b/runtime/ftplugin/svg.vim @@ -37,3 +37,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/tcl.vim b/runtime/ftplugin/tcl.vim index c5bc3033e..1cc24d341 100644 --- a/runtime/ftplugin/tcl.vim +++ b/runtime/ftplugin/tcl.vim @@ -32,5 +32,6 @@ let b:undo_ftplugin = "setlocal fo< com< cms< inc< inex< def< isf< kp<" . " Restore the saved compatibility options. let &cpo = s:cpo_save +unlet s:cpo_save " vim: set et ts=4 sw=4 tw=78: diff --git a/runtime/ftplugin/tcsh.vim b/runtime/ftplugin/tcsh.vim index dacb44e71..7e2d95993 100644 --- a/runtime/ftplugin/tcsh.vim +++ b/runtime/ftplugin/tcsh.vim @@ -37,3 +37,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/tex.vim b/runtime/ftplugin/tex.vim index 408992743..11470012f 100644 --- a/runtime/ftplugin/tex.vim +++ b/runtime/ftplugin/tex.vim @@ -41,5 +41,6 @@ if exists("loaded_matchit") endif " exists("loaded_matchit") let &cpo = s:save_cpo +unlet s:save_cpo " vim:sts=2:sw=2: diff --git a/runtime/ftplugin/xhtml.vim b/runtime/ftplugin/xhtml.vim index a50ed925b..21ed3e110 100644 --- a/runtime/ftplugin/xhtml.vim +++ b/runtime/ftplugin/xhtml.vim @@ -64,3 +64,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter b:match_words | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/xml.vim b/runtime/ftplugin/xml.vim index 74cd064ee..236e87053 100644 --- a/runtime/ftplugin/xml.vim +++ b/runtime/ftplugin/xml.vim @@ -61,3 +61,4 @@ let b:undo_ftplugin = "setlocal commentstring< comments< formatoptions<" . " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/ftplugin/xsd.vim b/runtime/ftplugin/xsd.vim index b0337603c..6a4a19365 100644 --- a/runtime/ftplugin/xsd.vim +++ b/runtime/ftplugin/xsd.vim @@ -36,3 +36,4 @@ let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin " Restore the saved compatibility options. let &cpo = s:save_cpo +unlet s:save_cpo diff --git a/runtime/syntax/dnsmasq.vim b/runtime/syntax/dnsmasq.vim index 8f3fe3f7a..dcc1a3c10 100644 --- a/runtime/syntax/dnsmasq.vim +++ b/runtime/syntax/dnsmasq.vim @@ -1,14 +1,19 @@ -" Vim syntax file -" Language: dnsmasq configuration file +" Vim file " Maintainer: Thilo Six <T.Six@gmx.de> -" Version: 2.59-1 -" Last Change: 2011 Dec 11 +" Version: 2.60-1 +" Last Change: 2012 Mar 10 " Modeline: vim: ts=8:sw=2:sts=2: +" File: runtime/syntax/dnsmasq.vim " " Credits: Igor N. Prischepoff " Doug Kearns " David Ne\v{c}as " +" License: VIM License +" see ":help copyright" +" +" Description: highlight dnsmasq configuration files +" " Options: You might want to add this to your vimrc: " " if &background == "dark" @@ -18,7 +23,6 @@ " let dnsmasq_backrgound_light = 1 " endif " -" " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -28,11 +32,9 @@ elseif exists("b:current_syntax") || &compatible finish endif -" predictable environment: -let s:keepcpo = &cpo +let s:cpo_save = &cpo set cpo&vim - if !exists("b:dnsmasq_backrgound_light") if exists("dnsmasq_backrgound_light") let b:dnsmasq_backrgound_light = dnsmasq_backrgound_light @@ -106,6 +108,7 @@ syn match DnsmasqKeyword "^\s*dhcp-authoritative\>" syn match DnsmasqKeyword "^\s*dhcp-boot\>" syn match DnsmasqKeyword "^\s*dhcp-broadcast\>" syn match DnsmasqKeyword "^\s*dhcp-circuitid\>" +syn match DnsmasqKeyword "^\s*dhcp-client-update\>" syn match DnsmasqKeyword "^\s*dhcp-fqdn\>" syn match DnsmasqKeyword "^\s*dhcp-generate-names\>" syn match DnsmasqKeyword "^\s*dhcp-host\>" @@ -114,6 +117,7 @@ syn match DnsmasqKeyword "^\s*dhcp-ignore\>" syn match DnsmasqKeyword "^\s*dhcp-ignore-names\>" syn match DnsmasqKeyword "^\s*dhcp-lease-max\>" syn match DnsmasqKeyword "^\s*dhcp-leasefile\>" +syn match DnsmasqKeyword "^\s*dhcp-luascript\>" syn match DnsmasqKeyword "^\s*dhcp-mac\>" syn match DnsmasqKeyword "^\s*dhcp-match\>" syn match DnsmasqKeyword "^\s*dhcp-no-override\>" @@ -134,6 +138,7 @@ syn match DnsmasqKeyword "^\s*domain\>" syn match DnsmasqKeyword "^\s*domain-needed\>" syn match DnsmasqKeyword "^\s*edns-packet-max\>" syn match DnsmasqKeyword "^\s*enable-dbus\>" +syn match DnsmasqKeyword "^\s*enable-ra\>" syn match DnsmasqKeyword "^\s*enable-tftp\>" syn match DnsmasqKeyword "^\s*except-interface\>" syn match DnsmasqKeyword "^\s*expand-hosts\>" @@ -145,9 +150,9 @@ syn match DnsmasqKeyword "^\s*keep-in-foreground\>" syn match DnsmasqKeyword "^\s*leasefile-ro\>" syn match DnsmasqKeyword "^\s*listen-address\>" syn match DnsmasqKeyword "^\s*local\>" +syn match DnsmasqKeyword "^\s*localmx\>" syn match DnsmasqKeyword "^\s*local-ttl\>" syn match DnsmasqKeyword "^\s*localise-queries\>" -syn match DnsmasqKeyword "^\s*localmx\>" syn match DnsmasqKeyword "^\s*log-async\>" syn match DnsmasqKeyword "^\s*log-dhcp\>" syn match DnsmasqKeyword "^\s*log-facility\>" @@ -217,6 +222,6 @@ hi def link DnsmasqValues Normal let b:current_syntax = "dnsmasq" -let &cpo = s:keepcpo -unlet s:keepcpo +let &cpo = s:cpo_save +unlet s:cpo_save diff --git a/runtime/syntax/lout.vim b/runtime/syntax/lout.vim index 2a0a72c5b..9a34328ac 100644 --- a/runtime/syntax/lout.vim +++ b/runtime/syntax/lout.vim @@ -1,13 +1,21 @@ " Vim syntax file " Language: Lout " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de> -" Last Change: Son 22 Jun 2003 20:43:26 CEST +" Last Change: So 12 Feb 2012 15:15:03 CET " Filenames: *.lout,*.lt -" URL: http://www.cvjb.de/comp/vim/lout.vim -" $Id: lout.vim,v 1.1 2004/06/13 17:52:18 vimboss Exp $ +" URL: http://www.cvjb.de/comp/vim/lout.vim + +" $Id: lout.vim,v 1.4 2012/02/12 15:16:17 bruessow Exp $ " " Lout: Basser Lout document formatting system. +" Many Thanks to... +" +" 2012-02-12: +" Thilo Six <T.Six at gmx dot de> send a patch for cpoptions. +" See the discussion at http://thread.gmane.org/gmane.editors.vim.devel/32151 + + " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 @@ -16,6 +24,9 @@ elseif exists("b:current_syntax") finish endif +let s:cpo_save=&cpo +set cpo&vim + " Lout is case sensitive syn case match @@ -136,4 +147,7 @@ endif let b:current_syntax = "lout" +let &cpo=s:cpo_save +unlet s:cpo_save + " vim:ts=8:sw=4:nocindent:smartindent: diff --git a/runtime/syntax/sshconfig.vim b/runtime/syntax/sshconfig.vim index 15e3b0170..6d4de6c64 100644 --- a/runtime/syntax/sshconfig.vim +++ b/runtime/syntax/sshconfig.vim @@ -2,7 +2,7 @@ " Language: OpenSSH client configuration file (ssh_config) " Author: David Necas (Yeti) " Maintainer: Leonard Ehrenfried <leonard.ehrenfried@web.de> -" Last Change: 2012 Feb 19 +" Last Change: 2012 Feb 24 " SSH Version: 5.9p1 " |