mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
updated for version 7.0-230
This commit is contained in:
parent
4076b79afd
commit
d267b9c167
@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 7.0. Last change: 2006 Nov 01
|
*eval.txt* For Vim version 7.0. Last change: 2007 Apr 24
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1623,6 +1623,7 @@ glob( {expr}) String expand file wildcards in {expr}
|
|||||||
globpath( {path}, {expr}) String do glob({expr}) for all dirs in {path}
|
globpath( {path}, {expr}) String do glob({expr}) for all dirs in {path}
|
||||||
has( {feature}) Number TRUE if feature {feature} supported
|
has( {feature}) Number TRUE if feature {feature} supported
|
||||||
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
|
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
|
||||||
|
haslocaldir() Number TRUE if current window executed |:lcd|
|
||||||
hasmapto( {what} [, {mode} [, {abbr}]])
|
hasmapto( {what} [, {mode} [, {abbr}]])
|
||||||
Number TRUE if mapping to {what} exists
|
Number TRUE if mapping to {what} exists
|
||||||
histadd( {history},{item}) String add an item to a history
|
histadd( {history},{item}) String add an item to a history
|
||||||
@ -3016,6 +3017,9 @@ has_key({dict}, {key}) *has_key()*
|
|||||||
The result is a Number, which is 1 if |Dictionary| {dict} has
|
The result is a Number, which is 1 if |Dictionary| {dict} has
|
||||||
an entry with key {key}. Zero otherwise.
|
an entry with key {key}. Zero otherwise.
|
||||||
|
|
||||||
|
haslocaldir() *haslocaldir()*
|
||||||
|
The result is a Number, which is 1 when the current
|
||||||
|
window has set a local path via |:lcd|, and 0 otherwise.
|
||||||
|
|
||||||
hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
|
hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
|
||||||
The result is a Number, which is 1 if there is a mapping that
|
The result is a Number, which is 1 if there is a mapping that
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
*usr_41.txt* For Vim version 7.0. Last change: 2006 Apr 30
|
*usr_41.txt* For Vim version 7.0. Last change: 2007 Apr 26
|
||||||
|
|
||||||
VIM USER MANUAL - by Bram Moolenaar
|
VIM USER MANUAL - by Bram Moolenaar
|
||||||
|
|
||||||
@ -703,6 +703,7 @@ System functions and manipulation of files:
|
|||||||
isdirectory() check if a directory exists
|
isdirectory() check if a directory exists
|
||||||
getfsize() get the size of a file
|
getfsize() get the size of a file
|
||||||
getcwd() get the current working directory
|
getcwd() get the current working directory
|
||||||
|
haslocaldir() check if current window used |:lcd|
|
||||||
tempname() get the name of a temporary file
|
tempname() get the name of a temporary file
|
||||||
mkdir() create a new directory
|
mkdir() create a new directory
|
||||||
delete() delete a file
|
delete() delete a file
|
||||||
|
14
src/eval.c
14
src/eval.c
@ -541,6 +541,7 @@ static void f_glob __ARGS((typval_T *argvars, typval_T *rettv));
|
|||||||
static void f_globpath __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_globpath __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_has __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_has __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_has_key __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_has_key __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
|
static void f_haslocaldir __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_hasmapto __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_hasmapto __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_histadd __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_histadd __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_histdel __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_histdel __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
@ -7110,6 +7111,7 @@ static struct fst
|
|||||||
{"globpath", 2, 2, f_globpath},
|
{"globpath", 2, 2, f_globpath},
|
||||||
{"has", 1, 1, f_has},
|
{"has", 1, 1, f_has},
|
||||||
{"has_key", 2, 2, f_has_key},
|
{"has_key", 2, 2, f_has_key},
|
||||||
|
{"haslocaldir", 0, 0, f_haslocaldir},
|
||||||
{"hasmapto", 1, 3, f_hasmapto},
|
{"hasmapto", 1, 3, f_hasmapto},
|
||||||
{"highlightID", 1, 1, f_hlID}, /* obsolete */
|
{"highlightID", 1, 1, f_hlID}, /* obsolete */
|
||||||
{"highlight_exists",1, 1, f_hlexists}, /* obsolete */
|
{"highlight_exists",1, 1, f_hlexists}, /* obsolete */
|
||||||
@ -11133,6 +11135,18 @@ f_has_key(argvars, rettv)
|
|||||||
get_tv_string(&argvars[1]), -1) != NULL;
|
get_tv_string(&argvars[1]), -1) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* "haslocaldir()" function
|
||||||
|
*/
|
||||||
|
/*ARGSUSED*/
|
||||||
|
static void
|
||||||
|
f_haslocaldir(argvars, rettv)
|
||||||
|
typval_T *argvars;
|
||||||
|
typval_T *rettv;
|
||||||
|
{
|
||||||
|
rettv->vval.v_number = (curwin->w_localdir != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "hasmapto()" function
|
* "hasmapto()" function
|
||||||
*/
|
*/
|
||||||
|
@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
230,
|
||||||
/**/
|
/**/
|
||||||
229,
|
229,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user