]> granicus.if.org Git - vim/commitdiff
updated for version 7.0192
authorBram Moolenaar <Bram@vim.org>
Sat, 4 Feb 2006 00:57:42 +0000 (00:57 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 4 Feb 2006 00:57:42 +0000 (00:57 +0000)
runtime/doc/eval.txt
runtime/doc/options.txt
runtime/menu.vim
src/regexp.c
src/version.h

index b8539f4344971b55a85106bd318287dd878f422f..021c7fa3f27ef20b2dba8206fef59dfdc745bda7 100644 (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
@@ -1894,8 +1894,8 @@ char2nr({expr})                                           *char2nr()*
                        char2nr(" ")            returns 32
                        char2nr("ABC")          returns 65
 <              The current 'encoding' is used.  Example for "utf-8": >
-                       char2nr("á")            returns 225
-                       char2nr("á"[0])         returns 195
+                       char2nr("?")            returns 225
+                       char2nr("?"[0])         returns 195
 <              nr2char() does the opposite.
 
 cindent({lnum})                                                *cindent()*
@@ -3478,7 +3478,8 @@ printf({fmt}, {expr1} ...)                                *printf()*
 
                Often used items are:
                  %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
                  %d    decimal number
                  %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
                  %X    hex number using upper case letters
                  %o    octal number
-                 %%    the % character
+                 %%    the % character itself
 
                Conversion specifications start with '%' and end with the
                conversion type.  All other characters are copied unchanged to
@@ -3532,11 +3533,10 @@ printf({fmt}, {expr1} ...)                              *printf()*
 
                field-width
                        An optional decimal digit string specifying a minimum
-                       field width.  If the converted value has fewer
-                       characters than the field width, it will be padded
-                       with spaces on the left (or right, if the
-                       left-adjustment flag has been given) to fill out the
-                       field width.
+                       field width.  If the converted value has fewer bytes
+                       than the field width, it will be padded with spaces on
+                       the left (or right, if the left-adjustment flag has
+                       been given) to fill out the field width.
 
                .precision
                        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.
                        This gives the minimum number of digits to appear for
                        d, o, x, and X conversions, or the maximum number of
-                       characters to be printed from a string for s
-                       conversions.
+                       bytes to be printed from a string for s conversions.
 
                type
                        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
                        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
                        be invoked through an entry in a Dictionary.  The
                        local variable "self" will then be set to the
                        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[unction]         The end of a function definition.  Must be on a line
                        by its own, without other commands.
index 8f0e39088b725112c30f168a9f2bf199a4d122ee..9bd366026228ea1d795f9d7f5a50372349a0fa4d 100644 (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
@@ -5835,6 +5835,10 @@ A jump table for the options with a short description can be found at |Q_op|.
        files twice.
        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
        "spell/LANG.vim" in 'runtimepath'.  "LANG" is the value of 'spelllang'
        up to the first comma, dot or underscore.
index d31e1ce7923e2e17eae7788f1e3e655b4a6a75d8..9dc3766ec58cd20763d3636b0ff4f49cb778810f 100644 (file)
@@ -2,7 +2,7 @@
 " You can also use this as a start for your own set of menus.
 "
 " 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
 " in all modes and avoid side effects from mappings defined by the user.
@@ -140,14 +140,14 @@ if has("virtualedit")
   func! <SID>Paste()
     let ove = &ve
     set ve=all
-    normal `^
+    normal! `^
     if @+ != ''
-      normal "+gP
+      normal! "+gP
     endif
     let c = col(".")
-    normal i\e
+    normal! i\e
     if col(".") < c    " compensate for i<ESC> moving the cursor left
-      normal l
+      normal! l
     endif
     let &ve = ove
   endfunc
index 6a62b281a1f6150486b36277955b45bfbf431a2f..69acb69871b78816a2d423b01d7fa9c998546a1f 100644 (file)
@@ -325,8 +325,8 @@ toggle_Magic(x)
 
 /* Used for an error (down from) vim_regcomp(): give the error message, set
  * rc_did_emsg and return NULL */
-#define EMSG_RET_NULL(m) return (EMSG(m), rc_did_emsg = TRUE, NULL)
-#define EMSG_M_RET_NULL(m, c) return (EMSG2((m), (c) ? "" : "\\"), 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, (void *)NULL)
 #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)
 
index 69e928976e1f10f0e8c86dfa9f10bdd24749329a..48ae412a162926af2a1d7b9f0e3034b008d10f99 100644 (file)
@@ -36,5 +36,5 @@
 #define VIM_VERSION_NODOT      "vim70aa"
 #define VIM_VERSION_SHORT      "7.0aa"
 #define VIM_VERSION_MEDIUM     "7.0aa ALPHA"
-#define VIM_VERSION_LONG       "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 1)"
-#define VIM_VERSION_LONG_DATE  "VIM - Vi IMproved 7.0aa ALPHA (2006 Feb 1, compiled "
+#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 3, compiled "