mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.1-262
This commit is contained in:
parent
ffd82c5307
commit
18081e3c4e
@ -1,4 +1,4 @@
|
|||||||
*eval.txt* For Vim version 7.1. Last change: 2008 Feb 13
|
*eval.txt* For Vim version 7.1. Last change: 2008 Feb 20
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -1638,6 +1638,7 @@ getline( {lnum}) String line {lnum} of current buffer
|
|||||||
getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer
|
getline( {lnum}, {end}) List lines {lnum} to {end} of current buffer
|
||||||
getloclist({nr}) List list of location list items
|
getloclist({nr}) List list of location list items
|
||||||
getmatches() List list of current matches
|
getmatches() List list of current matches
|
||||||
|
getpid() Number process ID of Vim
|
||||||
getpos( {expr}) List position of cursor, mark, etc.
|
getpos( {expr}) List position of cursor, mark, etc.
|
||||||
getqflist() List list of quickfix items
|
getqflist() List list of quickfix items
|
||||||
getreg( [{regname} [, 1]]) String contents of register
|
getreg( [{regname} [, 1]]) String contents of register
|
||||||
@ -3833,6 +3834,10 @@ nr2char({expr}) *nr2char()*
|
|||||||
characters. nr2char(0) is a real NUL and terminates the
|
characters. nr2char(0) is a real NUL and terminates the
|
||||||
string, thus results in an empty string.
|
string, thus results in an empty string.
|
||||||
|
|
||||||
|
*getpid()*
|
||||||
|
getpid() Return a Number which is the process ID of the Vim process.
|
||||||
|
On Unix this is a unique number. On MS-DOS it's always zero.
|
||||||
|
|
||||||
*getpos()*
|
*getpos()*
|
||||||
getpos({expr}) Get the position for {expr}. For possible values of {expr}
|
getpos({expr}) Get the position for {expr}. For possible values of {expr}
|
||||||
see |line()|.
|
see |line()|.
|
||||||
|
14
src/eval.c
14
src/eval.c
@ -532,6 +532,7 @@ static void f_getftime __ARGS((typval_T *argvars, typval_T *rettv));
|
|||||||
static void f_getftype __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getftype __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_getline __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getline __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_getmatches __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getmatches __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
|
static void f_getpid __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_getpos __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getpos __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_getqflist __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getqflist __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
static void f_getreg __ARGS((typval_T *argvars, typval_T *rettv));
|
static void f_getreg __ARGS((typval_T *argvars, typval_T *rettv));
|
||||||
@ -7132,6 +7133,7 @@ static struct fst
|
|||||||
{"getline", 1, 2, f_getline},
|
{"getline", 1, 2, f_getline},
|
||||||
{"getloclist", 1, 1, f_getqflist},
|
{"getloclist", 1, 1, f_getqflist},
|
||||||
{"getmatches", 0, 0, f_getmatches},
|
{"getmatches", 0, 0, f_getmatches},
|
||||||
|
{"getpid", 0, 0, f_getpid},
|
||||||
{"getpos", 1, 1, f_getpos},
|
{"getpos", 1, 1, f_getpos},
|
||||||
{"getqflist", 0, 0, f_getqflist},
|
{"getqflist", 0, 0, f_getqflist},
|
||||||
{"getreg", 0, 2, f_getreg},
|
{"getreg", 0, 2, f_getreg},
|
||||||
@ -10373,6 +10375,18 @@ f_getmatches(argvars, rettv)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* "getpid()" function
|
||||||
|
*/
|
||||||
|
/*ARGSUSED*/
|
||||||
|
static void
|
||||||
|
f_getpid(argvars, rettv)
|
||||||
|
typval_T *argvars;
|
||||||
|
typval_T *rettv;
|
||||||
|
{
|
||||||
|
rettv->vval.v_number = mch_get_pid();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* "getpos(string)" function
|
* "getpos(string)" 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 */
|
||||||
|
/**/
|
||||||
|
262,
|
||||||
/**/
|
/**/
|
||||||
261,
|
261,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user