0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.1b

This commit is contained in:
Bram Moolenaar
2007-05-10 17:35:54 +00:00
parent 2bb8df23dc
commit 7263a77b99
20 changed files with 132 additions and 61 deletions

View File

@@ -1,4 +1,4 @@
README_mac.txt for version 7.1a of Vim: Vi IMproved. README_mac.txt for version 7.1b of Vim: Vi IMproved.
This file explains the installation of Vim on Macintosh systems. This file explains the installation of Vim on Macintosh systems.
See "README.txt" for general information about Vim. See "README.txt" for general information about Vim.

View File

@@ -1,4 +1,4 @@
*if_mzsch.txt* For Vim version 7.1a. Last change: 2007 May 03 *if_mzsch.txt* For Vim version 7.1b. Last change: 2007 May 03
VIM REFERENCE MANUAL by Sergey Khorev VIM REFERENCE MANUAL by Sergey Khorev

View File

@@ -1,4 +1,4 @@
*if_perl.txt* For Vim version 7.1a. Last change: 2006 Mar 06 *if_perl.txt* For Vim version 7.1b. Last change: 2006 Mar 06
VIM REFERENCE MANUAL by Sven Verdoolaege VIM REFERENCE MANUAL by Sven Verdoolaege

View File

@@ -1,4 +1,4 @@
*indent.txt* For Vim version 7.1a. Last change: 2007 Mar 17 *indent.txt* For Vim version 7.1b. Last change: 2007 May 10
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -113,7 +113,7 @@ If you really want to reindent when you type 'o', 'O', 'e', '0', '<', '>',
"<!>", respectively, for those keys. "<!>", respectively, for those keys.
For an emacs-style indent mode where lines aren't indented every time you For an emacs-style indent mode where lines aren't indented every time you
press Enter but only if you press Tab, I suggest: press <Enter> but only if you press Tab, I suggest:
:set cinkeys=0{,0},:,0#,!<Tab>,!^F :set cinkeys=0{,0},:,0#,!<Tab>,!^F
You might also want to switch off 'autoindent' then. You might also want to switch off 'autoindent' then.
@@ -515,6 +515,28 @@ Indent for a continuation line: >
let g:pyindent_continue = '&sw * 2' let g:pyindent_continue = '&sw * 2'
SHELL *ft-sh-indent*
The amount of indent applied under various circumstances in a shell file can
be configured by setting the following keys in the |Dictionary|
b:sh_indent_defaults to a specific amount or to a |Funcref| that references a
function that will return the amount desired:
b:sh_indent_options['default'] Default amount of indent.
b:sh_indent_options['continuation-line']
Amount of indent to add to a continued line.
b:sh_indent_options['case-labels']
Amount of indent to add for case labels.
b:sh_indent_options['case-statement']
Amount of indent to add for case statements.
b:sh_indent_options['case-breaks']
Amount of indent to add (or more likely
remove) for case breaks.
VERILOG *ft-verilog-indent* VERILOG *ft-verilog-indent*
General block statements such as if, for, case, always, initial, function, General block statements such as if, for, case, always, initial, function,

View File

@@ -1,4 +1,4 @@
*os_risc.txt* For Vim version 7.1a. Last change: 2005 Mar 29 *os_risc.txt* For Vim version 7.1b. Last change: 2005 Mar 29
VIM REFERENCE MANUAL by Thomas Leonard VIM REFERENCE MANUAL by Thomas Leonard

View File

@@ -1,4 +1,4 @@
*pi_getscript.txt* For Vim version 7.1a. Last change: 2007 Apr 26 *pi_getscript.txt* For Vim version 7.1b. Last change: 2007 May 08
> >
GETSCRIPT REFERENCE MANUAL by Charles E. Campbell, Jr. GETSCRIPT REFERENCE MANUAL by Charles E. Campbell, Jr.
< <
@@ -136,7 +136,7 @@ insures that GetLatestVimScripts will assume that the script it has is
out-of-date. out-of-date.
The SourceID is extracted by GetLatestVimScripts from the script's page on The SourceID is extracted by GetLatestVimScripts from the script's page on
vim.sf.net; whenever its greater than the one stored in the vim.sf.net; whenever it's greater than the one stored in the
GetLatestVimScripts.dat file, the script will be downloaded GetLatestVimScripts.dat file, the script will be downloaded
(see |GetLatestVimScripts_dat|). (see |GetLatestVimScripts_dat|).
@@ -309,7 +309,7 @@ so-called script-id. Within the webpage of
is a line specifying the latest source-id (src_id). The source identifier is a line specifying the latest source-id (src_id). The source identifier
numbers are always increasing, hence if the src_id is greater than the one numbers are always increasing, hence if the src_id is greater than the one
recorded for the script in GetLatestVimScripts then its time to download a recorded for the script in GetLatestVimScripts then it's time to download a
newer copy of that script. newer copy of that script.
GetLatestVimScripts will then download the script and update its internal GetLatestVimScripts will then download the script and update its internal
@@ -335,6 +335,8 @@ The AutoInstall process will:
============================================================================== ==============================================================================
9. GetLatestVimScripts History *getscript-history* *glvs-hist* {{{1 9. GetLatestVimScripts History *getscript-history* *glvs-hist* {{{1
v24 Apr 16, 2007 : * removed save&restore of the fo option during script
loading
v23 Nov 03, 2006 : * ignores comments (#...) v23 Nov 03, 2006 : * ignores comments (#...)
* handles vimballs * handles vimballs
v22 Oct 13, 2006 : * supports automatic use of curl if wget is not v22 Oct 13, 2006 : * supports automatic use of curl if wget is not

View File

@@ -1,4 +1,4 @@
*pi_vimball.txt* For Vim version 7.1a. Last change: 2007 Jan 03 *pi_vimball.txt* For Vim version 7.1b. Last change: 2007 May 08
---------------- ----------------
Vimball Archiver Vimball Archiver
@@ -90,6 +90,7 @@ Copyright: (c) 2004-2006 by Charles E. Campbell, Jr. *Vimball-copyright*
============================================================================== ==============================================================================
3. Vimball History *vimball-history* {{{1 3. Vimball History *vimball-history* {{{1
22 : Mar 21, 2007 * uses setlocal instead of set during BufEnter
21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header 21 : Nov 27, 2006 * (tnx to Bill McCarthy) vimball had a header
handling problem and it now changes \s to /s handling problem and it now changes \s to /s
20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag 20 : Nov 20, 2006 * substitute() calls have all had the 'e' flag
@@ -114,7 +115,7 @@ Copyright: (c) 2004-2006 by Charles E. Campbell, Jr. *Vimball-copyright*
10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of 10 : Apr 27, 2006 * moved all setting saving/restoration to a pair of
functions. Included some more settings in them functions. Included some more settings in them
which frequently cause trouble. which frequently cause trouble.
9 : Apr 26, 2006 * various changes to support Windows prediliction 9 : Apr 26, 2006 * various changes to support Windows predilection
for backslashes and spaces in file and directory for backslashes and spaces in file and directory
names. names.
7 : Apr 25, 2006 * bypasses foldenable 7 : Apr 25, 2006 * bypasses foldenable

View File

@@ -1,4 +1,4 @@
*pi_zip.txt* For Vim version 7.1a. Last change: 2006 Sep 29 *pi_zip.txt* For Vim version 7.1b. Last change: 2007 May 08
+====================+ +====================+
| Zip File Interface | | Zip File Interface |
@@ -6,7 +6,7 @@
Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM> Author: Charles E. Campbell, Jr. <NdrOchip@ScampbellPfamily.AbizM>
(remove NOSPAM from Campbell's email first) (remove NOSPAM from Campbell's email first)
Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright* Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr *zip-copyright*
Permission is hereby granted to use and distribute this code, Permission is hereby granted to use and distribute this code,
with or without modifications, provided that this copyright with or without modifications, provided that this copyright
notice is copied with it. Like anything else that's free, notice is copied with it. Like anything else that's free,
@@ -18,9 +18,10 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
============================================================================== ==============================================================================
1. Contents *zip* *zip-contents* 1. Contents *zip* *zip-contents*
1. Contents..................................................|zip-contents| 1. Contents................................................|zip-contents|
2. Usage.....................................................|zip-usage| 2. Usage...................................................|zip-usage|
3. History...................................................|zip-history| 3. Additional Extensions...................................|zip-extension|
4. History.................................................|zip-history|
============================================================================== ==============================================================================
2. Usage *zip-usage* *zip-manual* 2. Usage *zip-usage* *zip-manual*
@@ -31,14 +32,45 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
also write to the file. Currently, one may not make a new file in also write to the file. Currently, one may not make a new file in
zip archives via the plugin. zip archives via the plugin.
The zip program supports one option: > OPTIONS
g:zip_shq *zip_shq*
Different operating systems may use one or more shells to execute
commands. Zip will try to guess the correct quoting mechanism to
allow spaces and whatnot in filenames; however, if it is incorrectly
guessing the quote to use for your setup, you may use >
g:zip_shq
< which by default is a single quote under Unix (') and a double quote < which by default is a single quote under Unix (') and a double quote
under Windows ("). If you'd rather have no quotes, simply set under Windows ("). If you'd rather have no quotes, simply set
g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>. g:zip_shq to the empty string (let g:zip_shq= "") in your <.vimrc>.
*g:zip_unzipcmd*
Use this option to specify the program which does the duty of "unzip".
Its used during browsing. By default: >
let g:zip_unzipcmd= "unzip"
<
*g:zip_zipcmd*
Use this option to specify the program which does the duty of "zip".
Its used during the writing (updating) of a file already in a zip
file; by default: >
let g:zip_zipcmd= "zip"
<
============================================================================== ==============================================================================
3. History *zip-history* 3. Additional Extensions *zip-extension*
Apparently there are a number of archivers who generate zip files that
don't use the .zip extension (.jar, .xpi, etc). To handle such files,
place a line in your <.vimrc> file: >
au BufReadCmd *.jar,*.xpi call zip#Browse(expand("<amatch>"))
<
One can simply extend this line to accomdate additional extensions that
are actually zip files.
==============================================================================
4. History *zip-history* {{{1
v14 May 07, 2007 * using b:zipfile instead of w:zipfile to avoid problem
when editing alternate file to bring up a zipfile
v10 May 02, 2006 * now using "redraw then echo" to show messages, instead v10 May 02, 2006 * now using "redraw then echo" to show messages, instead
of "echo and prompt user" of "echo and prompt user"
* g:zip_shq provided to allow for quoting control for the * g:zip_shq provided to allow for quoting control for the
@@ -62,4 +94,4 @@ Copyright: Copyright (C) 2005,2006 Charles E Campbell, Jr {{{1 *zip-copyright*
v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing v1 Sep 15, 2005 * Initial release, had browsing, reading, and writing
============================================================================== ==============================================================================
vim:tw=78:ts=8:ft=help vim:tw=78:ts=8:ft=help:fdm=marker

View File

@@ -1,4 +1,4 @@
*usr_02.txt* For Vim version 7.1a. Last change: 2007 Feb 28 *usr_02.txt* For Vim version 7.1b. Last change: 2007 Feb 28
VIM USER MANUAL - by Bram Moolenaar VIM USER MANUAL - by Bram Moolenaar

View File

@@ -1,4 +1,4 @@
*usr_44.txt* For Vim version 7.1a. Last change: 2006 Apr 24 *usr_44.txt* For Vim version 7.1b. Last change: 2006 Apr 24
VIM USER MANUAL - by Bram Moolenaar VIM USER MANUAL - by Bram Moolenaar

View File

@@ -1,7 +1,7 @@
" Vim indent file " Vim indent file
" Language: dict(1) configuration file " Language: dict(1) configuration file
" Maintainer: Nikolai Weibull <now@bitwi.se> " Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2006-04-19 " Latest Revision: 2006-12-20
if exists("b:did_indent") if exists("b:did_indent")
finish finish
@@ -9,4 +9,5 @@ endif
let b:did_indent = 1 let b:did_indent = 1
setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent setlocal indentkeys=0{,0},!^F,o,O cinwords= autoindent smartindent
setlocal nosmartindent
inoremap <buffer> # X# inoremap <buffer> # X#

Binary file not shown.

Binary file not shown.

View File

@@ -2,8 +2,8 @@
" Language: shell (sh) Korn shell (ksh) bash (sh) " Language: shell (sh) Korn shell (ksh) bash (sh)
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz> " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
" Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int> " Previous Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int>
" Last Change: Sep 15, 2006 " Last Change: Dec 12, 2006
" Version: 88 " Version: 89
" URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
" "
" Using the following VIM variables: {{{1 " Using the following VIM variables: {{{1
@@ -75,19 +75,22 @@ syn cluster shCaseList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSu
syn cluster shColonList contains=@shCaseList syn cluster shColonList contains=@shCaseList
syn cluster shCommandSubList contains=shArithmetic,shDeref,shDerefSimple,shNumber,shOperator,shPosnParm,shExSingleQuote,shSingleQuote,shDoubleQuote,shStatement,shVariable,shSubSh,shAlias,shTest,shCtrlSeq syn cluster shCommandSubList contains=shArithmetic,shDeref,shDerefSimple,shNumber,shOperator,shPosnParm,shExSingleQuote,shSingleQuote,shDoubleQuote,shStatement,shVariable,shSubSh,shAlias,shTest,shCtrlSeq
syn cluster shCurlyList contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial syn cluster shCurlyList contains=shNumber,shComma,shDeref,shDerefSimple,shDerefSpecial
syn cluster shDblQuoteList contains=shCommandSub,shDeref,shDerefSimple,shPosnParm,shExSingleQuote,shCtrlSeq syn cluster shDblQuoteList contains=shCommandSub,shDeref,shDerefSimple,shPosnParm,shExSingleQuote,shCtrlSeq,shSpecial
syn cluster shDerefList contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPPS syn cluster shDerefList contains=shDeref,shDerefSimple,shDerefVar,shDerefSpecial,shDerefWordError,shDerefPPS
syn cluster shDerefVarList contains=shDerefOp,shDerefVarArray,shDerefOpError syn cluster shDerefVarList contains=shDerefOp,shDerefVarArray,shDerefOpError
syn cluster shEchoList contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shExpr,shExSingleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq syn cluster shEchoList contains=shArithmetic,shCommandSub,shDeref,shDerefSimple,shExpr,shExSingleQuote,shSingleQuote,shDoubleQuote,shCtrlSeq
syn cluster shExprList1 contains=shCharClass,shNumber,shOperator,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq syn cluster shExprList1 contains=shCharClass,shNumber,shOperator,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shDblBrace,shDeref,shDerefSimple,shCtrlSeq
syn cluster shExprList2 contains=@shExprList1,@shCaseList,shTest syn cluster shExprList2 contains=@shExprList1,@shCaseList,shTest
syn cluster shFunctionList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shOperator,shFunctionStart,shCtrlSeq syn cluster shFunctionList contains=@shCommandSubList,shCaseEsac,shColon,shCommandSub,shCommandSub,shComment,shDo,shEcho,shExpr,shFor,shHereDoc,shIf,shRedir,shSetList,shSource,shStatement,shVariable,shOperator,shFunctionStart,shCtrlSeq
if exists("b:is_kornshell") || exists("b:is_bash")
syn cluster shFunctionList add=shDblBrace,shDblParen
endif
syn cluster shHereBeginList contains=@shCommandSubList syn cluster shHereBeginList contains=@shCommandSubList
syn cluster shHereList contains=shBeginHere,shHerePayload syn cluster shHereList contains=shBeginHere,shHerePayload
syn cluster shHereListDQ contains=shBeginHere,@shDblQuoteList,shHerePayload syn cluster shHereListDQ contains=shBeginHere,@shDblQuoteList,shHerePayload
syn cluster shIdList contains=shCommandSub,shWrapLineOperator,shIdWhiteSpace,shDeref,shDerefSimple,shRedir,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq syn cluster shIdList contains=shCommandSub,shWrapLineOperator,shIdWhiteSpace,shDeref,shDerefSimple,shRedir,shExSingleQuote,shSingleQuote,shDoubleQuote,shExpr,shCtrlSeq
syn cluster shLoopList contains=@shCaseList,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest syn cluster shLoopList contains=@shCaseList,shTestOpr,shExpr,shDblBrace,shConditional,shCaseEsac,shTest
syn cluster shSubShList contains=@shCaseList syn cluster shSubShList contains=@shCaseList,shOperator
syn cluster shTestList contains=shCharClass,shComment,shCommandSub,shDeref,shDerefSimple,shDoubleQuote,shExpr,shExpr,shNumber,shOperator,shExSingleQuote,shSingleQuote,shTestOpr,shTest,shCtrlSeq syn cluster shTestList contains=shCharClass,shComment,shCommandSub,shDeref,shDerefSimple,shDoubleQuote,shExpr,shExpr,shNumber,shOperator,shExSingleQuote,shSingleQuote,shTestOpr,shTest,shCtrlSeq
@@ -127,8 +130,16 @@ syn match shTestError "]"
syn match shOption "\s[\-+][a-zA-Z0-9]\+\>"ms=s+1 syn match shOption "\s[\-+][a-zA-Z0-9]\+\>"ms=s+1
syn match shOption "\s--[^ \t$`'"|]\+"ms=s+1 syn match shOption "\s--[^ \t$`'"|]\+"ms=s+1
" File Redirection Highlighted As Operators: {{{1
"===========================================
syn match shRedir "\d\=>\(&[-0-9]\)\="
syn match shRedir "\d\=>>-\="
syn match shRedir "\d\=<\(&[-0-9]\)\="
syn match shRedir "\d<<-\="
" Operators: {{{1 " Operators: {{{1
" ========== " ==========
syn match shOperator "<<\|>>" contained
syn match shOperator "[!&;|]" syn match shOperator "[!&;|]"
syn match shOperator "\[[[^:]\|\]]" syn match shOperator "\[[[^:]\|\]]"
syn match shOperator "!\==" skipwhite nextgroup=shPattern syn match shOperator "!\==" skipwhite nextgroup=shPattern
@@ -186,7 +197,7 @@ syn match shComma contained ","
" ==== " ====
syn match shCaseBar contained skipwhite "[^|"`'()]\{-}|"hs=e nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote syn match shCaseBar contained skipwhite "[^|"`'()]\{-}|"hs=e nextgroup=shCase,shCaseStart,shCaseBar,shComment,shCaseExSingleQuote,shCaseSingleQuote,shCaseDoubleQuote
syn match shCaseStart contained skipwhite skipnl "(" nextgroup=shCase,shCaseBar syn match shCaseStart contained skipwhite skipnl "(" nextgroup=shCase,shCaseBar
syn region shCase contained skipwhite skipnl matchgroup=shSnglCase start="[^#$()'"]\{-})"ms=s,hs=e end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,shComment syn region shCase contained skipwhite skipnl matchgroup=shSnglCase start="\([^#$()'" \t]\|\\.\)\{-})"ms=s,hs=e end=";;" end="esac"me=s-1 contains=@shCaseList nextgroup=shCaseStart,shCase,shComment
if g:sh_fold_enabled if g:sh_fold_enabled
syn region shCaseEsac fold matchgroup=shConditional start="\<case\>" end="\<esac\>" contains=@shCaseEsacList syn region shCaseEsac fold matchgroup=shConditional start="\<case\>" end="\<esac\>" contains=@shCaseEsacList
else else
@@ -255,21 +266,16 @@ endif
syn region shSingleQuote matchgroup=shOperator start=+'+ end=+'+ contains=shStringSpecial,@Spell syn region shSingleQuote matchgroup=shOperator start=+'+ end=+'+ contains=shStringSpecial,@Spell
syn region shDoubleQuote matchgroup=shOperator start=+"+ skip=+\\"+ end=+"+ contains=@shDblQuoteList,shStringSpecial,@Spell syn region shDoubleQuote matchgroup=shOperator start=+"+ skip=+\\"+ end=+"+ contains=@shDblQuoteList,shStringSpecial,@Spell
syn match shStringSpecial "[^[:print:]]" contained syn match shStringSpecial "[^[:print:]]" contained
syn match shSpecial "\\[\\\"\'`$()#]" syn match shStringSpecial "\%(\\\\\)*\\[\\"'`$()#]"
syn match shSpecial "[^\\]\zs\%(\\\\\)*\\[\\"'`$()#]"
syn match shSpecial "^\%(\\\\\)*\\[\\"'`$()#]"
" Comments: {{{1 " Comments: {{{1
"========== "==========
syn cluster shCommentGroup contains=shTodo,@Spell syn cluster shCommentGroup contains=shTodo,@Spell
syn keyword shTodo contained COMBAK FIXME TODO XXX syn keyword shTodo contained COMBAK FIXME TODO XXX
syn match shComment "^#.*$" contains=@shCommentGroup syn match shComment "^\s*\zs#.*$" contains=@shCommentGroup
syn match shComment "[^0-9]#.*$" contains=@shCommentGroup syn match shComment "#.*$" contains=@shCommentGroup
" File Redirection Highlighted As Operators: {{{1
"===========================================
syn match shRedir "\d\=>\(&[-0-9]\)\="
syn match shRedir "\d\=>>-\="
syn match shRedir "\d\=<\(&[-0-9]\)\="
syn match shRedir "\d<<-\="
" Here Documents: {{{1 " Here Documents: {{{1
" ========================================= " =========================================
@@ -338,10 +344,11 @@ endif
" Functions: {{{1 " Functions: {{{1
syn keyword shFunctionKey function skipwhite skipnl nextgroup=shFunctionTwo syn keyword shFunctionKey function skipwhite skipnl nextgroup=shFunctionTwo
syn match shFunctionStart "^\s*{" contained " COMBAK -- look at bash09. function foo() (line#35) is folding 38 lines. Not being terminated properly
"syn match shFunctionStart "{" contained
if g:sh_fold_enabled if g:sh_fold_enabled
syn region shFunctionOne transparent fold start="^\s*\h\w*\s*()\_s*\ze{" matchgroup=shFunctionStart end="}" contains=@shFunctionList syn region shFunctionOne transparent fold start="^\s*\h\w*\s*()\_s*\ze{" matchgroup=shFunctionStart end="}" contains=@shFunctionList skipwhite skipnl nextgroup=shFunctionStart
syn region shFunctionTwo transparent fold start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}" contains=shFunctionKey,@shFunctionList contained syn region shFunctionTwo transparent fold start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}" contains=shFunctionKey,@shFunctionList contained skipwhite skipnl nextgroup=shFunctionStart
else else
syn region shFunctionOne transparent start="^\s*\h\w*\s*()\_s*\ze{" matchgroup=shFunctionStart end="}" contains=@shFunctionList syn region shFunctionOne transparent start="^\s*\h\w*\s*()\_s*\ze{" matchgroup=shFunctionStart end="}" contains=@shFunctionList
syn region shFunctionTwo transparent start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}" contains=shFunctionKey,@shFunctionList contained syn region shFunctionTwo transparent start="\h\w*\s*\%(()\)\=\_s*\ze{" matchgroup=shFunctionStart end="}" contains=shFunctionKey,@shFunctionList contained

View File

@@ -15,6 +15,6 @@ REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Vim\Gvim] [HKEY_LOCAL_MACHINE\Software\Vim\Gvim]
"path"="gvim.exe" "path"="gvim.exe"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Vim 7.1a] [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\Vim 7.1b]
"DisplayName"="Vim 7.1a: Edit with Vim popup menu entry" "DisplayName"="Vim 7.1b: Edit with Vim popup menu entry"
"UninstallString"="uninstal.exe" "UninstallString"="uninstal.exe"

View File

@@ -24,7 +24,7 @@
#>>>>> choose options: #>>>>> choose options:
# set to yes for a debug build # set to yes for a debug build
DEBUG=no DEBUG=no
# set to SIZE for size, SPEED for speed, MAXSPEED for maximium optimization # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
OPTIMIZE=MAXSPEED OPTIMIZE=MAXSPEED
# set to yes to make gvim, no for vim # set to yes to make gvim, no for vim
GUI=yes GUI=yes

View File

@@ -1271,7 +1271,7 @@ retry:
else if (conv_restlen > 0) else if (conv_restlen > 0)
{ {
/* Reached end-of-file but some trailing bytes could /* Reached end-of-file but some trailing bytes could
* not be converted. Trucated file? */ * not be converted. Truncated file? */
if (conv_error == 0) if (conv_error == 0)
conv_error = linecnt; conv_error = linecnt;
if (bad_char_behavior != BAD_DROP) if (bad_char_behavior != BAD_DROP)
@@ -2192,16 +2192,22 @@ failed:
if (filesize == 0) if (filesize == 0)
linecnt = 0; linecnt = 0;
if (newfile || read_buffer) if (newfile || read_buffer)
{
redraw_curbuf_later(NOT_VALID); redraw_curbuf_later(NOT_VALID);
#ifdef FEAT_DIFF
/* After reading the text into the buffer the diff info needs to
* be updated. */
diff_invalidate(curbuf);
#endif
#ifdef FEAT_FOLDING
/* All folds in the window are invalid now. Mark them for update
* before triggering autocommands. */
foldUpdateAll(curwin);
#endif
}
else if (linecnt) /* appended at least one line */ else if (linecnt) /* appended at least one line */
appended_lines_mark(from, linecnt); appended_lines_mark(from, linecnt);
#ifdef FEAT_DIFF
/* After reading the text into the buffer the diff info needs to be
* updated. */
if (newfile || read_buffer)
diff_invalidate(curbuf);
#endif
#ifndef ALWAYS_USE_GUI #ifndef ALWAYS_USE_GUI
/* /*
* If we were reading from the same terminal as where messages go, * If we were reading from the same terminal as where messages go,
@@ -4026,8 +4032,8 @@ restore_backup:
/* TODO: Is it need for MACOS_X? (Dany) */ /* TODO: Is it need for MACOS_X? (Dany) */
/* /*
* On macintosh copy the original files attributes (i.e. the backup) * On macintosh copy the original files attributes (i.e. the backup)
* This is done in order to preserve the ressource fork and the * This is done in order to preserve the resource fork and the
* Finder attribute (label, comments, custom icons, file creatore) * Finder attribute (label, comments, custom icons, file creator)
*/ */
if (backup != NULL && overwriting && !append) if (backup != NULL && overwriting && !append)
{ {
@@ -4041,7 +4047,7 @@ restore_backup:
{ {
if (buf->b_ffname != NULL) if (buf->b_ffname != NULL)
(void)mch_copy_file_attribute(buf->b_ffname, wfname); (void)mch_copy_file_attribute(buf->b_ffname, wfname);
/* Should copy ressource fork */ /* Should copy resource fork */
} }
#endif #endif
@@ -5795,7 +5801,7 @@ buf_modname(shortname, fname, ext, prepend_dot)
#endif #endif
/* /*
* If the extension doesn't start with '.', and there already is an * If the extension doesn't start with '.', and there already is an
* extension, it may need to be tructated * extension, it may need to be truncated
*/ */
else if ((int)STRLEN(e) + extlen > 4) else if ((int)STRLEN(e) + extlen > 4)
s = e + 4 - extlen; s = e + 4 - extlen;
@@ -5989,7 +5995,7 @@ vim_rename(from, to)
/* /*
* With MSDOS-compatible filesystems (crossdos, messydos) it is possible * With MSDOS-compatible filesystems (crossdos, messydos) it is possible
* that the name of the "to" file is the same as the "from" file, even * that the name of the "to" file is the same as the "from" file, even
* though the names are different. To avoid the chance of accidently * though the names are different. To avoid the chance of accidentally
* deleting the "from" file (horror!) we lock it during the remove. * deleting the "from" file (horror!) we lock it during the remove.
* *
* When used for making a backup before writing the file: This should not * When used for making a backup before writing the file: This should not
@@ -6058,7 +6064,7 @@ vim_rename(from, to)
errmsg = _("E210: Error reading \"%s\""); errmsg = _("E210: Error reading \"%s\"");
to = from; to = from;
} }
#ifndef UNIX /* for Unix mch_open() already set ther permission */ #ifndef UNIX /* for Unix mch_open() already set the permission */
mch_setperm(to, perm); mch_setperm(to, perm);
#endif #endif
#ifdef HAVE_ACL #ifdef HAVE_ACL
@@ -8402,7 +8408,7 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap)
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
/* /*
* Quickly return when immdediately aborting on error, or when an interrupt * Quickly return when immediately aborting on error, or when an interrupt
* occurred or an exception was thrown but not caught. * occurred or an exception was thrown but not caught.
*/ */
if (aborting()) if (aborting())

View File

@@ -2873,7 +2873,7 @@ gui_mch_destroy_menu(vimmenu_T *menu)
} }
/* Size of buffer has changed. /* Size of buffer has changed.
* Add one to max since gui.c substracts one more than it should! * Add one to max since gui.c subtracts one more than it should!
*/ */
void void
gui_mch_set_scrollbar_thumb(sb, val, size, max) gui_mch_set_scrollbar_thumb(sb, val, size, max)

View File

@@ -1531,7 +1531,7 @@ initialise_toolbar(void)
s_hwnd, s_hwnd,
WS_CHILD | WS_VISIBLE, WS_CHILD | WS_VISIBLE,
CMD_TB_BASE, /*<vn>*/ CMD_TB_BASE, /*<vn>*/
31, //number of images in inital bitmap 31, //number of images in initial bitmap
s_hinst, s_hinst,
IDR_TOOLBAR1, // id of initial bitmap IDR_TOOLBAR1, // id of initial bitmap
NULL, NULL,

View File

@@ -90,7 +90,7 @@
/* Define as the command at the end of signal handlers ("" or "return 0;"). */ /* Define as the command at the end of signal handlers ("" or "return 0;"). */
#define SIGRETURN #define SIGRETURN
/* Define if touuper/tolower only work on lower/upercase characters */ /* Define if toupper/tolower only work on lower/uppercase characters */
#undef BROKEN_TOUPPER #undef BROKEN_TOUPPER
/* Define if tgetstr() has a second argument that is (char *) */ /* Define if tgetstr() has a second argument that is (char *) */