find_command(exarg_T *eap … )
find_command
tries to «locate» an Ex command (built-in or user defined) by its name.
eap->cmd
points to the start of the command.
The function sets eap->cmdidx
Returns a char_u*
that points after the command name, or NULL
if command was ambigous.
For example, if called with set nocompatible
, it will return a pointer to nocompatible
.
Exceptions are if the command starts with
The function also checks if the
command table needs to be updated. If this is the case, it throws the error
E943. (See
create_cmdidxs.vim
and
ex_cmdidxs.h
)
ex_ni()
ex_ni
is called for ex-commands that are not implemented.
They're probably not implemented because they require a
FEAT_*
with which the sources were not
compiled (for example in something like to following code snippet):
#ifndef FEAT_PRINTER
# define ex_hardcopy ex_ni
#endif