Mercurial > vim
comparison runtime/doc/userfunc.txt @ 30324:0827d3d6d8c0
Update runtime files
Commit: https://github.com/vim/vim/commit/9712ff1288f942736ed76c0dec014909f067eec9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 18 13:04:22 2022 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 18 Sep 2022 14:15:05 +0200 |
parents | fee9eccee266 |
children | 3295247d97a5 |
comparison
equal
deleted
inserted
replaced
30323:7637e274f2a6 | 30324:0827d3d6d8c0 |
---|---|
13 3. Cleaning up in a function |:defer| | 13 3. Cleaning up in a function |:defer| |
14 4. Automatically loading functions |autoload-functions| | 14 4. Automatically loading functions |autoload-functions| |
15 | 15 |
16 ============================================================================== | 16 ============================================================================== |
17 | 17 |
18 1. Defining a fuction ~ | 18 1. Defining a function ~ |
19 *define-function* | 19 *define-function* |
20 New functions can be defined. These can be called just like builtin | 20 New functions can be defined. These can be called just like builtin |
21 functions. The function executes a sequence of Ex commands. Normal mode | 21 functions. The function executes a sequence of Ex commands. Normal mode |
22 commands can be executed with the |:normal| command. | 22 commands can be executed with the |:normal| command. |
23 | 23 |
306 : echo div | 306 : echo div |
307 :endif | 307 :endif |
308 < | 308 < |
309 ============================================================================== | 309 ============================================================================== |
310 | 310 |
311 2. Calling a fuction ~ | 311 2. Calling a function ~ |
312 *:cal* *:call* *E107* | 312 *:cal* *:call* *E107* |
313 :[range]cal[l] {name}([arguments]) | 313 :[range]cal[l] {name}([arguments]) |
314 Call a function. The name of the function and its arguments | 314 Call a function. The name of the function and its arguments |
315 are as specified with `:function`. Up to 20 arguments can be | 315 are as specified with `:function`. Up to 20 arguments can be |
316 used. The returned value is discarded. | 316 used. The returned value is discarded. |