updated for version 7.0041

This commit is contained in:
Bram Moolenaar
2005-01-17 22:21:07 +00:00
parent d6754643d0
commit bac234ead6
3 changed files with 53 additions and 41 deletions

View File

@ -1,4 +1,4 @@
*todo.txt* For Vim version 7.0aa. Last change: 2005 Jan 16 *todo.txt* For Vim version 7.0aa. Last change: 2005 Jan 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -30,25 +30,12 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
*known-bugs* *known-bugs*
-------------------- Known bugs and current work ----------------------- -------------------- Known bugs and current work -----------------------
Dictionary: Sanity check of eval.c:
- Define nameless function: ":function dict.key(arg)" - Go through the code for magic braces.
- ":delfunc dict.key".
- Set the error message numbers for E999.
Make ":call Funcref()" work?
Mention Rsync command on runtime.php page: Mention Rsync command on runtime.php page:
rsync -avzcP --delete --exclude="dos" --delete-excluded ftp.nluug.nl::Vim/runtime/ vim63-runtime rsync -avzcP --delete --exclude="dos" --delete-excluded ftp.nluug.nl::Vim/runtime/ vim63-runtime
List type:
- Make second index in list[i:j] exclusive, like Python?
Marcus Aurelius: yes
- Add List functions to version7.txt.
- Add List functions to overview of funtions in user manual.
- Explain Lists in the user manual?
Add +=, -= and .= assignments.
netrw plugin: netrw plugin:
- provide :Explore and :Sexplore like the old file explorer? - provide :Explore and :Sexplore like the old file explorer?
- alignment of long listing isn't very good. - alignment of long listing isn't very good.
@ -67,6 +54,8 @@ New Motif toolbar button from Marcin Dalecki:
- add remark in version7.txt - add remark in version7.txt
- check if it works for pixmap loaded from a file. - check if it works for pixmap loaded from a file.
Explain Lists, Dicts, |:for| etc. in the user manual |usr_41.txt|.
Awaiting response: Awaiting response:
- Patch for mch_FullName() also in Vim 6.3? os_mswin.c - Patch for mch_FullName() also in Vim 6.3? os_mswin.c
- Win32: "gvim -V100" should use dialog with scrollbar. Using - Win32: "gvim -V100" should use dialog with scrollbar. Using
@ -93,9 +82,7 @@ PLANNED FOR VERSION 7.0:
Also: for strings up to 3 bytes don't allocate memory, VAR_STRINGX. Also: for strings up to 3 bytes don't allocate memory, VAR_STRINGX.
- new DATA TYPES: - new DATA TYPES:
- None? (or use empty string?) - None? (or use empty string?)
- dictionary See ~/vim/ideas.txt.
range(start, end, stride) creates a listable dict.
Add type checking? See ~/vim/ideas.txt.
- Add SPELLCHECKER, with easy to add support for many languages. - Add SPELLCHECKER, with easy to add support for many languages.
8 Add spell checking. Use "ispell -a" somehow. 8 Add spell checking. Use "ispell -a" somehow.
~/vim/patches/wm_vim-5_4d.zip can be used as an example (includes ~/vim/patches/wm_vim-5_4d.zip can be used as an example (includes

View File

@ -1,4 +1,4 @@
*version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 16 *version7.txt* For Vim version 7.0aa. Last change: 2005 Jan 17
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -17,7 +17,7 @@ INCOMPATIBLE CHANGES |incompatible-7|
NEW FEATURES |new-7| NEW FEATURES |new-7|
New data types |new-data-types| Vim script enhancements |new-vim-script|
KDE support |new-KDE| KDE support |new-KDE|
Translated manual pages |new-manpage-trans| Translated manual pages |new-manpage-trans|
Internal grep |new-vimgrep| Internal grep |new-vimgrep|
@ -93,8 +93,8 @@ non-latin1 environment, such as Russian.
============================================================================== ==============================================================================
NEW FEATURES *new-7* NEW FEATURES *new-7*
New data types *new-data-types* Vim script enhancements *new-vim-script*
-------------- -----------------------
In Vim scripts the following types have been added: In Vim scripts the following types have been added:
@ -104,12 +104,13 @@ In Vim scripts the following types have been added:
Many functions and commands have been added to support the new types. Many functions and commands have been added to support the new types.
The Dictionary is NOT IMPLEMENTED YET!
The |string()| function can be used to get a string representation of a The |string()| function can be used to get a string representation of a
variable. Works for Numbers, Strings and composites of them. Then |eval()| variable. Works for Numbers, Strings and composites of them. Then |eval()|
can be used to turn the string back into the variable value. can be used to turn the string back into the variable value.
The |:let| command can now use ":let var += expr" like using ":let var = var +
expr". "-=" and ".=" works in a similar way.
KDE support *new-KDE* KDE support *new-KDE*
----------- -----------
@ -208,22 +209,45 @@ Win32: The ":winpos" command now also works in the console. (Vipin Aravind)
New functions: ~ New functions: ~
browsedir(title, init) |browsedir()| Dialog to select a directory. |add()| append an item to a List
byteidx(expr, nr) |byteidx()| Index of a character. (Ilya Sher) |append()| append List of lines to the buffer
finddir(name) |finddir()| Find a directory in 'path'. |browsedir()| Dialog to select a directory.
findfile(name) |findfile()| Find a file in 'path'. (Johannes |byteidx()| Index of a character. (Ilya Sher)
Zellner) |call()| call a function with List as arguments
foldtextresult(lnum) |foldtextresult()| The text displayed for a closed |copy()| make a shallow copy of a List or Dictionary
fold at line "lnum". |count()| count nr of times a value is in a List or Dictionary
getfperm(fname) |getfperm()| Get file permission string. (Nikolai |deepcopy()| make a full copy of a List or Dictionary
Weibull) |empty()| check if List or Dictionary is empty
getftype(fname) |getftype()| Get type of file. (Nikolai Weibull) |extend()| append one List to another or add items from one
repeat(expr, count) |repeat()| Repeat "expr" "count" times. Dictionary to another
(Christophe Poucet) |filter()| remove selected items from a List or Dictionary
tr(expr, from, to) |tr()| Translate characters. (Ron Aaron) |finddir()| Find a directory in 'path'.
system(cmd, input) |system()| Filters {input} through a shell |findfile()| Find a file in 'path'. (Johannes Zellner)
command. |foldtextresult()| The text displayed for a closed fold at line "lnum".
getfontname([name]) |getfontname()| Get actual font name being used. |function()| make a Funcref out of a function name
|get()| get an item from a List or Dictionary
|getfontname()| Get actual font name being used.
|getfperm()| Get file permission string. (Nikolai Weibull)
|getftype()| Get type of file. (Nikolai Weibull)
|getline()| get List with buffer lines
|has_key()| check whether a key appears in a Dictionary
|insert()| insert an item somewhere in a List
|items()| get List of Dictionary key-value pairs
|join()| join List items into a String
|keys()| get List of Dictionary keys
|len()| number of items in a List or Dictionary
|map()| change each List or Dictionary item
|max()| maximum value in a List or Dictionary
|min()| minimum value in a List or Dictionary
|remove()| remove one or more items from a List or Dictionary
|repeat()| Repeat "expr" "count" times. (Christophe Poucet)
|reverse()| reverse the order of a List
|sort()| sort a List
|split()| split a String into a List
|string()| String representation of a List or Dictionary
|system()| Filters {input} through a shell command.
|tr()| Translate characters. (Ron Aaron)
|values()| get List of Dictionary values
New autocommand events: ~ New autocommand events: ~

View File

@ -63,6 +63,7 @@ int vim_ispathlistsep __ARGS((int c));
int vim_fnamecmp __ARGS((char_u *x, char_u *y)); int vim_fnamecmp __ARGS((char_u *x, char_u *y));
int vim_fnamencmp __ARGS((char_u *x, char_u *y, size_t len)); int vim_fnamencmp __ARGS((char_u *x, char_u *y, size_t len));
char_u *concat_fnames __ARGS((char_u *fname1, char_u *fname2, int sep)); char_u *concat_fnames __ARGS((char_u *fname1, char_u *fname2, int sep));
char_u *concat_str __ARGS((char_u *str1, char_u *str2));
void add_pathsep __ARGS((char_u *p)); void add_pathsep __ARGS((char_u *p));
char_u *FullName_save __ARGS((char_u *fname, int force)); char_u *FullName_save __ARGS((char_u *fname, int force));
pos_T *find_start_comment __ARGS((int ind_maxcomment)); pos_T *find_start_comment __ARGS((int ind_maxcomment));