1
0
forked from aniani/vim

updated for version 7.0192

This commit is contained in:
Bram Moolenaar
2006-02-04 00:57:42 +00:00
parent 49315f65c9
commit 986920760e
5 changed files with 28 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.0aa. Last change: 2006 Jan 31 *eval.txt* For Vim version 7.0aa. Last change: 2006 Feb 03
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1894,8 +1894,8 @@ char2nr({expr}) *char2nr()*
char2nr(" ") returns 32 char2nr(" ") returns 32
char2nr("ABC") returns 65 char2nr("ABC") returns 65
< The current 'encoding' is used. Example for "utf-8": > < The current 'encoding' is used. Example for "utf-8": >
char2nr("<EFBFBD>") returns 225 char2nr("?") returns 225
char2nr("<EFBFBD>"[0]) returns 195 char2nr("?"[0]) returns 195
< nr2char() does the opposite. < nr2char() does the opposite.
cindent({lnum}) *cindent()* cindent({lnum}) *cindent()*
@@ -3478,7 +3478,8 @@ printf({fmt}, {expr1} ...) *printf()*
Often used items are: Often used items are:
%s string %s string
%6s string right-aligned in 6 characters %6s string right-aligned in 6 bytes
%.9s string truncated to 9 bytes
%c single byte %c single byte
%d decimal number %d decimal number
%5d decimal number padded with spaces to 5 characters %5d decimal number padded with spaces to 5 characters
@@ -3486,7 +3487,7 @@ printf({fmt}, {expr1} ...) *printf()*
%04x hex number padded with zeros to at least 4 characters %04x hex number padded with zeros to at least 4 characters
%X hex number using upper case letters %X hex number using upper case letters
%o octal number %o octal number
%% the % character %% the % character itself
Conversion specifications start with '%' and end with the Conversion specifications start with '%' and end with the
conversion type. All other characters are copied unchanged to conversion type. All other characters are copied unchanged to
@@ -3532,11 +3533,10 @@ printf({fmt}, {expr1} ...) *printf()*
field-width field-width
An optional decimal digit string specifying a minimum An optional decimal digit string specifying a minimum
field width. If the converted value has fewer field width. If the converted value has fewer bytes
characters than the field width, it will be padded than the field width, it will be padded with spaces on
with spaces on the left (or right, if the the left (or right, if the left-adjustment flag has
left-adjustment flag has been given) to fill out the been given) to fill out the field width.
field width.
.precision .precision
An optional precision, in the form of a period '.' An optional precision, in the form of a period '.'
@@ -3544,8 +3544,7 @@ printf({fmt}, {expr1} ...) *printf()*
string is omitted, the precision is taken as zero. string is omitted, the precision is taken as zero.
This gives the minimum number of digits to appear for This gives the minimum number of digits to appear for
d, o, x, and X conversions, or the maximum number of d, o, x, and X conversions, or the maximum number of
characters to be printed from a string for s bytes to be printed from a string for s conversions.
conversions.
type type
A character that specifies the type of conversion to A character that specifies the type of conversion to
@@ -4906,14 +4905,15 @@ See |:verbose-cmd| for more information.
When the [abort] argument is added, the function will When the [abort] argument is added, the function will
abort as soon as an error is detected. abort as soon as an error is detected.
The last used search pattern and the redo command "."
will not be changed by the function.
When the [dict] argument is added, the function must When the [dict] argument is added, the function must
be invoked through an entry in a Dictionary. The be invoked through an entry in a Dictionary. The
local variable "self" will then be set to the local variable "self" will then be set to the
dictionary. See |Dictionary-function|. dictionary. See |Dictionary-function|.
The last used search pattern and the redo command "."
will not be changed by the function.
*:endf* *:endfunction* *E126* *E193* *:endf* *:endfunction* *E126* *E193*
:endf[unction] The end of a function definition. Must be on a line :endf[unction] The end of a function definition. Must be on a line
by its own, without other commands. by its own, without other commands.

View File

@@ -1,4 +1,4 @@
*options.txt* For Vim version 7.0aa. Last change: 2006 Jan 31 *options.txt* For Vim version 7.0aa. Last change: 2006 Feb 02
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5835,6 +5835,10 @@ A jump table for the options with a short description can be found at |Q_op|.
files twice. files twice.
How the related spell files are found is explained here: |spell-load|. How the related spell files are found is explained here: |spell-load|.
If the |spellfile.vim| plugin is active and you use a language name
for which Vim cannot find the .spl file in 'runtimepath' the plugin
will ask you if you want to download the file.
After this option has been set successfully, Vim will source the files After this option has been set successfully, Vim will source the files
"spell/LANG.vim" in 'runtimepath'. "LANG" is the value of 'spelllang' "spell/LANG.vim" in 'runtimepath'. "LANG" is the value of 'spelllang'
up to the first comma, dot or underscore. up to the first comma, dot or underscore.

View File

@@ -2,7 +2,7 @@
" You can also use this as a start for your own set of menus. " You can also use this as a start for your own set of menus.
" "
" Maintainer: Bram Moolenaar <Bram@vim.org> " Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2006 Jan 27 " Last Change: 2006 Feb 02
" Note that ":an" (short for ":anoremenu") is often used to make a menu work " Note that ":an" (short for ":anoremenu") is often used to make a menu work
" in all modes and avoid side effects from mappings defined by the user. " in all modes and avoid side effects from mappings defined by the user.
@@ -140,14 +140,14 @@ if has("virtualedit")
func! <SID>Paste() func! <SID>Paste()
let ove = &ve let ove = &ve
set ve=all set ve=all
normal `^ normal! `^
if @+ != '' if @+ != ''
normal "+gP normal! "+gP
endif endif
let c = col(".") let c = col(".")
normal i normal! i
if col(".") < c " compensate for i<ESC> moving the cursor left if col(".") < c " compensate for i<ESC> moving the cursor left
normal l normal! l
endif endif
let &ve = ove let &ve = ove
endfunc endfunc

View File

@@ -325,8 +325,8 @@ toggle_Magic(x)
/* Used for an error (down from) vim_regcomp(): give the error message, set /* Used for an error (down from) vim_regcomp(): give the error message, set
* rc_did_emsg and return NULL */ * rc_did_emsg and return NULL */
#define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = TRUE, NULL) #define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = TRUE, (void *)NULL)
#define EMSG_M_RET_NULL(m, c) return (EMSG2((m), (c) ? "" : "\\"), rc_did_emsg = TRUE, NULL) #define EMSG_M_RET_NULL(m, c) return (EMSG2((m), (c) ? "" : "\\"), rc_did_emsg = TRUE, (void *)NULL)
#define EMSG_RET_FAIL(m) return (EMSG(m), rc_did_emsg = TRUE, FAIL) #define EMSG_RET_FAIL(m) return (EMSG(m), rc_did_emsg = TRUE, FAIL)
#define EMSG_ONE_RET_NULL EMSG_M_RET_NULL(_("E369: invalid item in %s%%[]"), reg_magic == MAGIC_ALL) #define EMSG_ONE_RET_NULL EMSG_M_RET_NULL(_("E369: invalid item in %s%%[]"), reg_magic == MAGIC_ALL)

View File

@@ -36,5 +36,5 @@
#define VIM_VERSION_NODOT "vim70aa" #define VIM_VERSION_NODOT "vim70aa"
#define VIM_VERSION_SHORT "7.0aa" #define VIM_VERSION_SHORT "7.0aa"
#define VIM_VERSION_MEDIUM "7.0aa ALPHA" #define VIM_VERSION_MEDIUM "7.0aa ALPHA"
#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 1)" #define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 3)"
#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 1, compiled " #define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 3, compiled "