aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/userfunc.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/userfunc.txt')
-rw-r--r--runtime/doc/userfunc.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/userfunc.txt b/runtime/doc/userfunc.txt
index 39c246e21d..c015b12c27 100644
--- a/runtime/doc/userfunc.txt
+++ b/runtime/doc/userfunc.txt
@@ -12,7 +12,7 @@ This is introduced in section |41.7| of the user manual.
==============================================================================
-1. Defining a fuction ~
+1. Defining a function ~
*define-function*
New functions can be defined. These can be called just like builtin
functions. The function executes a sequence of Ex commands. Normal mode
@@ -20,7 +20,7 @@ commands can be executed with the |:normal| command.
The function name must start with an uppercase letter, to avoid confusion with
builtin functions. To prevent from using the same name in different scripts
-make them script-local. If you do use a global function the avoid obvious,
+make them script-local. If you do use a global function then avoid obvious,
short names. A good habit is to start the function name with the name of the
script, e.g., "HTMLcolor()".
@@ -287,7 +287,7 @@ This function can then be called with: >
<
==============================================================================
-2. Calling a fuction ~
+2. Calling a function ~
*:cal* *:call* *E107* *E117*
:[range]cal[l] {name}([arguments])
Call a function. The name of the function and its arguments