Mercurial > vim
comparison runtime/doc/eval.txt @ 18456:6d11fc4aa683
Update runtime files
Commit: https://github.com/vim/vim/commit/96f45c0b6fc9e9d404e6805593ed1e0e6795e470
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 26 19:53:45 2019 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Oct 2019 20:00:04 +0200 |
parents | 375a7ecdb351 |
children | 18d7337b6837 |
comparison
equal
deleted
inserted
replaced
18455:3c98dfd2380c | 18456:6d11fc4aa683 |
---|---|
1 *eval.txt* For Vim version 8.1. Last change: 2019 Oct 13 | 1 *eval.txt* For Vim version 8.1. Last change: 2019 Oct 26 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
4240 | 4240 |
4241 expandcmd({expr}) *expandcmd()* | 4241 expandcmd({expr}) *expandcmd()* |
4242 Expand special items in {expr} like what is done for an Ex | 4242 Expand special items in {expr} like what is done for an Ex |
4243 command such as `:edit`. This expands special keywords, like | 4243 command such as `:edit`. This expands special keywords, like |
4244 with |expand()|, and environment variables, anywhere in | 4244 with |expand()|, and environment variables, anywhere in |
4245 {expr}. Returns the expanded string. | 4245 {expr}. "~user" and "~/path" are only expanded at the start. |
4246 Example: > | 4246 Returns the expanded string. Example: > |
4247 :echo expandcmd('make %<.o') | 4247 :echo expandcmd('make %<.o') |
4248 | 4248 |
4249 < Can also be used as a |method|: > | 4249 < Can also be used as a |method|: > |
4250 GetCommand()->expandcmd() | 4250 GetCommand()->expandcmd() |
4251 < | 4251 < |
6490 | 6490 |
6491 The {callback} is invoked with five arguments: | 6491 The {callback} is invoked with five arguments: |
6492 a:bufnr the buffer that was changed | 6492 a:bufnr the buffer that was changed |
6493 a:start first changed line number | 6493 a:start first changed line number |
6494 a:end first line number below the change | 6494 a:end first line number below the change |
6495 a:added total number of lines added, negative if lines | 6495 a:added number of lines added, negative if lines were |
6496 were deleted | 6496 deleted |
6497 a:changes a List of items with details about the changes | 6497 a:changes a List of items with details about the changes |
6498 | 6498 |
6499 Example: > | 6499 Example: > |
6500 func Listener(bufnr, start, end, added, changes) | 6500 func Listener(bufnr, start, end, added, changes) |
6501 echo 'lines ' .. a:start .. ' until ' .. a:end .. ' changed' | 6501 echo 'lines ' .. a:start .. ' until ' .. a:end .. ' changed' |
7504 height nr of items visible | 7504 height nr of items visible |
7505 width screen cells | 7505 width screen cells |
7506 row top screen row (0 first row) | 7506 row top screen row (0 first row) |
7507 col leftmost screen column (0 first col) | 7507 col leftmost screen column (0 first col) |
7508 size total nr of items | 7508 size total nr of items |
7509 scrollbar |TRUE| if visible | 7509 scrollbar |TRUE| if scrollbar is visible |
7510 | 7510 |
7511 The values are the same as in |v:event| during | 7511 The values are the same as in |v:event| during |
7512 |CompleteChanged|. | 7512 |CompleteChanged|. |
7513 | 7513 |
7514 pumvisible() *pumvisible()* | 7514 pumvisible() *pumvisible()* |