0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.0.0360: sometimes VimL is used instead of "Vim script"

Problem:    Sometimes VimL is used, which is confusing.
Solution:   Consistently use "Vim script". (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2017-02-23 19:03:28 +01:00
parent dc9a081712
commit b544f3c81f
15 changed files with 32 additions and 30 deletions

View File

@@ -249,7 +249,7 @@ Windows *mzscheme-window*
5. mzeval() Vim function *mzscheme-mzeval* 5. mzeval() Vim function *mzscheme-mzeval*
To facilitate bi-directional interface, you can use |mzeval()| function to To facilitate bi-directional interface, you can use |mzeval()| function to
evaluate MzScheme expressions and pass their values to VimL. evaluate MzScheme expressions and pass their values to Vim script.
============================================================================== ==============================================================================
6. Using Function references *mzscheme-funcref* 6. Using Function references *mzscheme-funcref*

View File

@@ -676,10 +676,10 @@ vim.Function object *python-Function*
dictionary. Note that explicit `self` keyword used when dictionary. Note that explicit `self` keyword used when
calling resulting object overrides this attribute. calling resulting object overrides this attribute.
auto_rebind Boolean. True if partial created from this Python object auto_rebind Boolean. True if partial created from this Python object
and stored in the VimL dictionary should be automatically and stored in the Vim script dictionary should be
rebound to the dictionary it is stored in when this automatically rebound to the dictionary it is stored in
dictionary is indexed. Exposes Vim internal difference when this dictionary is indexed. Exposes Vim internal
between `dict.func` (auto_rebind=True) and difference between `dict.func` (auto_rebind=True) and
`function(dict.func,dict)` (auto_rebind=False). This `function(dict.func,dict)` (auto_rebind=False). This
attribute makes no sense if `self` attribute is `None`. attribute makes no sense if `self` attribute is `None`.
@@ -711,7 +711,7 @@ vim.Function object *python-Function*
8. pyeval() and py3eval() Vim functions *python-pyeval* 8. pyeval() and py3eval() Vim functions *python-pyeval*
To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()| To facilitate bi-directional interface, you can use |pyeval()| and |py3eval()|
functions to evaluate Python expressions and pass their values to VimL. functions to evaluate Python expressions and pass their values to Vim script.
|pyxeval()| is also available. |pyxeval()| is also available.
============================================================================== ==============================================================================

View File

@@ -3327,8 +3327,8 @@ Some folding is now supported with syntax/vim.vim: >
g:vimsyn_folding =~ 't' : fold tcl script g:vimsyn_folding =~ 't' : fold tcl script
< <
*g:vimsyn_noerror* *g:vimsyn_noerror*
Not all error highlighting that syntax/vim.vim does may be correct; VimL is a Not all error highlighting that syntax/vim.vim does may be correct; Vim script
difficult language to highlight correctly. A way to suppress error is a difficult language to highlight correctly. A way to suppress error
highlighting is to put the following line in your |vimrc|: > highlighting is to put the following line in your |vimrc|: >
let g:vimsyn_noerror = 1 let g:vimsyn_noerror = 1

View File

@@ -589,7 +589,7 @@ Summary: *help-summary* >
register: > register: >
:help quote: :help quote:
13) Vim Script (VimL) is available at > 13) Vim script is available at >
:help eval.txt :help eval.txt
< Certain aspects of the language are available at :h expr-X where "X" is a < Certain aspects of the language are available at :h expr-X where "X" is a
single letter. E.g. > single letter. E.g. >
@@ -599,10 +599,10 @@ Summary: *help-summary* >
Also important is > Also important is >
:help function-list :help function-list
< to find a short description of all functions available. Help topics for < to find a short description of all functions available. Help topics for
VimL functions always include the "()", so: > Vim script functions always include the "()", so: >
:help append() :help append()
< talks about the append VimL function rather than how to append text in the < talks about the append Vim script function rather than how to append text
current buffer. in the current buffer.
14) Mappings are talked about in the help page :h |map.txt|. Use > 14) Mappings are talked about in the help page :h |map.txt|. Use >
:help mapmode-i :help mapmode-i

View File

@@ -10202,7 +10202,7 @@ objects in place of `str()` ones avoiding possibility of UnicodeDecodeError.
interfaces to some extent. Extent will be improved in the future. interfaces to some extent. Extent will be improved in the future.
Added special |python-vars| objects also available for |python-buffer| and Added special |python-vars| objects also available for |python-buffer| and
|python-window|. They ease access to VimL variables from Python. |python-window|. They ease access to Vim script variables from Python.
Now you no longer need to alter `sys.path` to import your module: special Now you no longer need to alter `sys.path` to import your module: special
hooks are responsible for importing from {rtp}/python2, {rtp}/python3 and hooks are responsible for importing from {rtp}/python2, {rtp}/python3 and

View File

@@ -2213,7 +2213,7 @@ test_arglist \
test_usercommands \ test_usercommands \
test_utf8 \ test_utf8 \
test_viminfo \ test_viminfo \
test_viml \ test_vimscript \
test_visual \ test_visual \
test_window_cmd \ test_window_cmd \
test_window_id \ test_window_id \

View File

@@ -950,7 +950,7 @@ eval_expr(char_u *arg, char_u **nextcmd)
/* /*
* Call some vimL function and return the result in "*rettv". * Call some Vim script function and return the result in "*rettv".
* Uses argv[argc] for the function arguments. Only Number and String * Uses argv[argc] for the function arguments. Only Number and String
* arguments are currently supported. * arguments are currently supported.
* Returns OK or FAIL. * Returns OK or FAIL.
@@ -1027,7 +1027,7 @@ call_vim_function(
} }
/* /*
* Call vimL function "func" and return the result as a number. * Call Vim script function "func" and return the result as a number.
* Returns -1 when calling the function fails. * Returns -1 when calling the function fails.
* Uses argv[argc] for the function arguments. * Uses argv[argc] for the function arguments.
*/ */
@@ -1055,7 +1055,7 @@ call_func_retnr(
# if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO) # if (defined(FEAT_USR_CMDS) && defined(FEAT_CMDL_COMPL)) || defined(PROTO)
/* /*
* Call vimL function "func" and return the result as a string. * Call Vim script function "func" and return the result as a string.
* Returns NULL when calling the function fails. * Returns NULL when calling the function fails.
* Uses argv[argc] for the function arguments. * Uses argv[argc] for the function arguments.
*/ */
@@ -1080,7 +1080,7 @@ call_func_retstr(
# endif # endif
/* /*
* Call vimL function "func" and return the result as a List. * Call Vim script function "func" and return the result as a List.
* Uses argv[argc] for the function arguments. * Uses argv[argc] for the function arguments.
* Returns NULL when there is something wrong. * Returns NULL when there is something wrong.
*/ */

View File

@@ -5140,8 +5140,8 @@ expand_shellcmd(
static void * call_user_expand_func(void *(*user_expand_func)(char_u *, int, char_u **, int), expand_T *xp, int *num_file, char_u ***file); static void * call_user_expand_func(void *(*user_expand_func)(char_u *, int, char_u **, int), expand_T *xp, int *num_file, char_u ***file);
/* /*
* Call "user_expand_func()" to invoke a user defined VimL function and return * Call "user_expand_func()" to invoke a user defined Vim script function and
* the result (either a string or a List). * return the result (either a string or a List).
*/ */
static void * static void *
call_user_expand_func( call_user_expand_func(

View File

@@ -582,9 +582,9 @@ VimTryStart(void)
VimTryEnd(void) VimTryEnd(void)
{ {
--trylevel; --trylevel;
/* Without this it stops processing all subsequent VimL commands and /* Without this it stops processing all subsequent Vim script commands and
* generates strange error messages if I e.g. try calling Test() in a * generates strange error messages if I e.g. try calling Test() in a cycle
* cycle */ */
did_emsg = FALSE; did_emsg = FALSE;
/* Keyboard interrupt should be preferred over anything else */ /* Keyboard interrupt should be preferred over anything else */
if (got_int) if (got_int)
@@ -625,7 +625,7 @@ VimTryEnd(void)
discard_current_exception(); discard_current_exception();
return -1; return -1;
} }
/* Finally transform VimL exception to python one */ /* Finally transform Vim script exception to python one */
else else
{ {
PyErr_SetVim((char *)current_exception->value); PyErr_SetVim((char *)current_exception->value);

View File

@@ -1449,8 +1449,8 @@ server_parse_message(
char_u *enc; char_u *enc;
/* /*
* This is a (n)otification. Sent with serverreply_send in VimL. * This is a (n)otification. Sent with serverreply_send in Vim
* Execute any autocommand and save it for later retrieval * script. Execute any autocommand and save it for later retrieval
*/ */
p += 2; p += 2;
gotWindow = 0; gotWindow = 0;

View File

@@ -199,7 +199,7 @@ NEW_TESTS = test_arglist.res \
test_undo.res \ test_undo.res \
test_usercommands.res \ test_usercommands.res \
test_viminfo.res \ test_viminfo.res \
test_viml.res \ test_vimscript.res \
test_visual.res \ test_visual.res \
test_window_id.res \ test_window_id.res \
test_writefile.res \ test_writefile.res \

View File

@@ -147,7 +147,7 @@ let s:fail = 0
let s:errors = [] let s:errors = []
let s:messages = [] let s:messages = []
let s:skipped = [] let s:skipped = []
if expand('%') =~ 'test_viml.vim' if expand('%') =~ 'test_vimscript.vim'
" this test has intentional s:errors, don't use try/catch. " this test has intentional s:errors, don't use try/catch.
source % source %
else else

View File

@@ -608,7 +608,7 @@ com! -nargs=1 -bar ExecAsScript call ExecAsScript(<f-args>)
" END_OF_TEST_ENVIRONMENT - do not change or remove this line. " END_OF_TEST_ENVIRONMENT - do not change or remove this line.
" Tests 1 to 15 were moved to test_viml.vim " Tests 1 to 15 were moved to test_vimscript.vim
let Xtest = 16 let Xtest = 16
"------------------------------------------------------------------------------- "-------------------------------------------------------------------------------

View File

@@ -764,6 +764,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 */
/**/
360,
/**/ /**/
359, 359,
/**/ /**/