comparison runtime/doc/eval.txt @ 23305:fab58304f77d

Update runtime files. Commit: https://github.com/vim/vim/commit/4072ba571babd733d1800c082416fe8fe3c28ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 23 13:56:35 2020 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Dec 2020 14:00:04 +0100
parents 99ef85ff1af4
children 2351b40af967
comparison
equal deleted inserted replaced
23304:e438ec7ffd5d 23305:fab58304f77d
1 *eval.txt* For Vim version 8.2. Last change: 2020 Dec 02 1 *eval.txt* For Vim version 8.2. Last change: 2020 Dec 22
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
4738 command line. See |filename-modifiers|. 4738 command line. See |filename-modifiers|.
4739 Example: > 4739 Example: >
4740 :echo fnamemodify("main.c", ":p:h") 4740 :echo fnamemodify("main.c", ":p:h")
4741 < results in: > 4741 < results in: >
4742 /home/mool/vim/vim/src 4742 /home/mool/vim/vim/src
4743 < Note: Environment variables don't work in {fname}, use 4743 < If {mods} is empty then {fname} is returned.
4744 Note: Environment variables don't work in {fname}, use
4744 |expand()| first then. 4745 |expand()| first then.
4745 4746
4746 Can also be used as a |method|: > 4747 Can also be used as a |method|: >
4747 GetName()->fnamemodify(':p:h') 4748 GetName()->fnamemodify(':p:h')
4748 4749
5141 When using bracketed paste only the first character is 5142 When using bracketed paste only the first character is
5142 returned, the rest of the pasted text is dropped. 5143 returned, the rest of the pasted text is dropped.
5143 |xterm-bracketed-paste|. 5144 |xterm-bracketed-paste|.
5144 5145
5145 There is no prompt, you will somehow have to make clear to the 5146 There is no prompt, you will somehow have to make clear to the
5146 user that a character has to be typed. 5147 user that a character has to be typed. The screen is not
5148 redrawn, e.g. when resizing the window. When using a popup
5149 window it should work better with a |popup-filter|.
5150
5147 There is no mapping for the character. 5151 There is no mapping for the character.
5148 Key codes are replaced, thus when the user presses the <Del> 5152 Key codes are replaced, thus when the user presses the <Del>
5149 key you get the code for the <Del> key, not the raw character 5153 key you get the code for the <Del> key, not the raw character
5150 sequence. Examples: > 5154 sequence. Examples: >
5151 getchar() == "\<Del>" 5155 getchar() == "\<Del>"
10840 10844
10841 {callback} is the function to call. It can be the name of a 10845 {callback} is the function to call. It can be the name of a
10842 function or a |Funcref|. It is called with one argument, which 10846 function or a |Funcref|. It is called with one argument, which
10843 is the timer ID. The callback is only invoked when Vim is 10847 is the timer ID. The callback is only invoked when Vim is
10844 waiting for input. 10848 waiting for input.
10849 If you want to show a message look at |popup_notification()|
10850 to avoid intefering with what the user is doing.
10845 10851
10846 {options} is a dictionary. Supported entries: 10852 {options} is a dictionary. Supported entries:
10847 "repeat" Number of times to repeat calling the 10853 "repeat" Number of times to repeat calling the
10848 callback. -1 means forever. When not present 10854 callback. -1 means forever. When not present
10849 the callback will be called once. 10855 the callback will be called once.