updated for version 7.0010
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*eval.txt* For Vim version 7.0aa. Last change: 2004 Jul 05
|
||||
*eval.txt* For Vim version 7.0aa. Last change: 2004 Jul 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -814,6 +814,7 @@ bufname( {expr}) String Name of the buffer {expr}
|
||||
bufnr( {expr}) Number Number of the buffer {expr}
|
||||
bufwinnr( {expr}) Number window number of buffer {expr}
|
||||
byte2line( {byte}) Number line number at byte count {byte}
|
||||
byteidx( {expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
||||
char2nr( {expr}) Number ASCII value of first char in {expr}
|
||||
cindent( {lnum}) Number C indent for line {lnum}
|
||||
col( {expr}) Number column nr of cursor or mark
|
||||
@ -897,6 +898,7 @@ remote_read( {serverid}) String read reply string
|
||||
remote_send( {server}, {string} [, {idvar}])
|
||||
String send key sequence
|
||||
rename( {from}, {to}) Number rename (move) file from {from} to {to}
|
||||
repeat( {expr}, {count}) String repeat {expr} {count} times
|
||||
resolve( {filename}) String get filename a shortcut points to
|
||||
search( {pattern} [, {flags}]) Number search for {pattern}
|
||||
searchpair( {start}, {middle}, {end} [, {flags} [, {skip}]])
|
||||
@ -1072,6 +1074,22 @@ byte2line({byte}) *byte2line()*
|
||||
{not available when compiled without the |+byte_offset|
|
||||
feature}
|
||||
|
||||
byteidx({expr}, {nr}) *byteidx()*
|
||||
Return byte index of the {nr}'th character in the string
|
||||
{expr}. Use zero for the first character, it returns zero.
|
||||
This function is only useful when there are multibyte
|
||||
characters, otherwise the returned value is equal to {nr}.
|
||||
Composing characters are counted as a separate character.
|
||||
Example : >
|
||||
echo matchstr(str, ".", byteidx(str, 3))
|
||||
< will display the fourth character. Another way to do the
|
||||
same: >
|
||||
let s = strpart(str, byteidx(str, 3))
|
||||
echo strpart(s, 0, byteidx(s, 1))
|
||||
< If there are less than {nr} characters -1 is returned.
|
||||
If there are exactly {nr} characters the length of the string
|
||||
is returned.
|
||||
|
||||
char2nr({expr}) *char2nr()*
|
||||
Return number value of the first char in {expr}. Examples: >
|
||||
char2nr(" ") returns 32
|
||||
@ -2179,6 +2197,12 @@ rename({from}, {to}) *rename()*
|
||||
successfully, and non-zero when the renaming failed.
|
||||
This function is not available in the |sandbox|.
|
||||
|
||||
repeat({expr}, {count}) *repeat()*
|
||||
Repeat {expr} {count} times and return the concatenated
|
||||
result. Example: >
|
||||
:let seperator = repeat('-', 80)
|
||||
< When {count} is zero or negative the result is empty.
|
||||
|
||||
resolve({filename}) *resolve()* *E655*
|
||||
On MS-Windows, when {filename} is a shortcut (a .lnk file),
|
||||
returns the path the shortcut points to in a simplified form.
|
||||
|
||||
@ -5789,6 +5789,7 @@ remove-filetype filetype.txt /*remove-filetype*
|
||||
remove-option-flags options.txt /*remove-option-flags*
|
||||
rename() eval.txt /*rename()*
|
||||
rename-files tips.txt /*rename-files*
|
||||
repeat() eval.txt /*repeat()*
|
||||
repeat.txt repeat.txt /*repeat.txt*
|
||||
repeating repeat.txt /*repeating*
|
||||
replacing change.txt /*replacing*
|
||||
@ -5866,6 +5867,8 @@ s<CR> change.txt /*s<CR>*
|
||||
sandbox eval.txt /*sandbox*
|
||||
save-file editing.txt /*save-file*
|
||||
save-settings starting.txt /*save-settings*
|
||||
scheme-syntax syntax.txt /*scheme-syntax*
|
||||
scheme.vim syntax.txt /*scheme.vim*
|
||||
scp pi_netrw.txt /*scp*
|
||||
script-here if_perl.txt /*script-here*
|
||||
script-local map.txt /*script-local*
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Jul 16
|
||||
*todo.txt* For Vim version 7.0aa. Last change: 2004 Jul 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -30,37 +30,12 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
|
||||
*known-bugs*
|
||||
-------------------- Known bugs and current work -----------------------
|
||||
|
||||
When switching between Aap script and make Vim won't always run.
|
||||
Add fix for zh_cn to Vim 6.3? (Liang)
|
||||
|
||||
Mac: Compiling --enable-gui=athena doesn't work. Try to fix without disabling
|
||||
Carbon. Otherwise adjust configure to disable Darwin. (raf)
|
||||
|
||||
Mac: "make install" doesn't install. Patch from RAF.
|
||||
|
||||
UTF-8 in 'comments' causes wrong indent. Counting bytes instead of char
|
||||
width? (Nikolai Weibull)
|
||||
|
||||
For version 7.0:
|
||||
- Include many PATCHES:
|
||||
8 Add functions:
|
||||
strrep() Repeat a string (patch from Christophe Poucet,
|
||||
2003 Sep 12, also contains XX)
|
||||
Alt: repeat(expr, count) werkt ook voor lists.
|
||||
mousex() mousey() get position of mouse pointer (patch by Ross
|
||||
Presser)
|
||||
He will send a new patch.
|
||||
Is this really useful?
|
||||
multibyteidx(string, idx) Byte index in multi-byte character.
|
||||
Patch by Ilya Sher, 2004 Feb 25
|
||||
Update June 18 (third one).
|
||||
menuprop({name}, {idx}, {what})
|
||||
Get menu property of menu {name} item {idx}.
|
||||
menuprop("", 1, "name") returns "File".
|
||||
menuprop("File", 1, "n") returns "nmenu
|
||||
File.Open..." argument.
|
||||
Patch by Ilya Sher, 2004 Apr 22
|
||||
mapname({idx}, mode) return the name of the idx'th mapping.
|
||||
Patch by Ilya Sher, 2004 Mar 4.
|
||||
match({pat}, {string} [,start] [,count]) get index of count'th match
|
||||
Patch by Ilya Sher, 2004 Jun 19
|
||||
find() find file in 'path' (patch from Johannes
|
||||
@ -287,6 +262,8 @@ For version 7.0:
|
||||
- When using 'incsearch" CTRL-R CTRL-W gets the word under the cursor, but
|
||||
the part that already matched is doubled then. Remove the part of the
|
||||
word that would be doubled. Make it work line CTRL-N in Insert mode.
|
||||
- Add Lua interface? (Wolfgang Oertl)
|
||||
|
||||
|
||||
Vi incompatibility:
|
||||
8 With undo/redo only marks in the changed lines should be changed. Other
|
||||
@ -1486,6 +1463,17 @@ Built-in script language:
|
||||
7 Add argument to winwidth() to subtract the space taken by 'foldcolumn',
|
||||
signs and/or 'number'.
|
||||
8 Add functions:
|
||||
menuprop({name}, {idx}, {what})
|
||||
Get menu property of menu {name} item {idx}.
|
||||
menuprop("", 1, "name") returns "File".
|
||||
menuprop("File", 1, "n") returns "nmenu
|
||||
File.Open..." argument.
|
||||
Patch by Ilya Sher, 2004 Apr 22
|
||||
Return a list of menus and/or a dictionary
|
||||
with properties instead.
|
||||
mapname({idx}, mode) return the name of the idx'th mapping.
|
||||
Patch by Ilya Sher, 2004 Mar 4.
|
||||
Return a list instead.
|
||||
sprintf(format, arg, ..) How to prevent a crash???
|
||||
attributes() return file protection flags "drwxrwxrwx"
|
||||
mkdir(dir) Create directory
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 16
|
||||
*version7.txt* For Vim version 7.0aa. Last change: 2004 Jul 18
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -123,7 +123,10 @@ Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
|
||||
|
||||
New functions: ~
|
||||
|
||||
tr(expr, from, to) |tr()| Translate characters. (Ron Aaron)
|
||||
repeat(expr, count) |repeat()| Repeat "expr" "count" times.
|
||||
(Christophe Poucet)
|
||||
tr(expr, from, to) |tr()| Translate characters. (Ron Aaron)
|
||||
byteidx(expr, nr) |byteidx()| Index of a character. (Ilya Sher)
|
||||
|
||||
|
||||
New autocommand events: ~
|
||||
@ -182,6 +185,12 @@ For lisp indenting and matching parenthesis: (Sergey Khorev)
|
||||
==============================================================================
|
||||
COMPILE TIME CHANGES *compile-changes-7*
|
||||
|
||||
Mac: "make" now creates the Vim.app directory and "make install" copies it to
|
||||
its final destination. (Raf)
|
||||
|
||||
Mac: Made it possible to compile with Motif, Athena or GTK without tricks and
|
||||
still being able to use the MacRoman conversion. Added the os_mac_conv.c
|
||||
file.
|
||||
|
||||
==============================================================================
|
||||
BUG FIXES *bug-fixes-7*
|
||||
@ -255,4 +264,7 @@ When 'comments' includes multi-byte characters inserting the middle part and
|
||||
alignment may go wrong. 'cindent' also suffers from this for right-aligned
|
||||
items.
|
||||
|
||||
The default for 'helplang' was "zh" for both "zh_cn" and "zh_tw". Now use
|
||||
"cn" or "tw" as intended.
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
Reference in New Issue
Block a user