Mercurial > vim
comparison runtime/doc/eval.txt @ 19400:bd9069d21c5d v8.2.0258
patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled
Commit: https://github.com/vim/vim/commit/4132eb505c506f7a0710b03a275d1c5a247e4196
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 14 16:53:00 2020 +0100
patch 8.2.0258: modifyOtherKeys cannot be temporarily disabled
Problem: ModifyOtherKeys cannot be temporarily disabled.
Solution: Add echoraw() with an example for modifyOtherKeys.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Feb 2020 17:00:04 +0100 |
parents | f0033a10b613 |
children | 2bb0e80fcd32 |
comparison
equal
deleted
inserted
replaced
19399:99feeb1a4af7 | 19400:bd9069d21c5d |
---|---|
1 *eval.txt* For Vim version 8.2. Last change: 2020 Feb 03 | 1 *eval.txt* For Vim version 8.2. Last change: 2020 Feb 14 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
2412 deletebufline({expr}, {first} [, {last}]) | 2412 deletebufline({expr}, {first} [, {last}]) |
2413 Number delete lines from buffer {expr} | 2413 Number delete lines from buffer {expr} |
2414 did_filetype() Number |TRUE| if FileType autocmd event used | 2414 did_filetype() Number |TRUE| if FileType autocmd event used |
2415 diff_filler({lnum}) Number diff filler lines about {lnum} | 2415 diff_filler({lnum}) Number diff filler lines about {lnum} |
2416 diff_hlID({lnum}, {col}) Number diff highlighting at {lnum}/{col} | 2416 diff_hlID({lnum}, {col}) Number diff highlighting at {lnum}/{col} |
2417 echoraw({expr}) none output {expr} as-is | |
2417 empty({expr}) Number |TRUE| if {expr} is empty | 2418 empty({expr}) Number |TRUE| if {expr} is empty |
2418 environ() Dict return environment variables | 2419 environ() Dict return environment variables |
2419 escape({string}, {chars}) String escape {chars} in {string} with '\' | 2420 escape({string}, {chars}) String escape {chars} in {string} with '\' |
2420 eval({string}) any evaluate {string} into its value | 2421 eval({string}) any evaluate {string} into its value |
2421 eventhandler() Number |TRUE| if inside an event handler | 2422 eventhandler() Number |TRUE| if inside an event handler |
2897 win_id2tabwin({expr}) List get tab and window nr from window ID | 2898 win_id2tabwin({expr}) List get tab and window nr from window ID |
2898 win_id2win({expr}) Number get window nr from window ID | 2899 win_id2win({expr}) Number get window nr from window ID |
2899 win_screenpos({nr}) List get screen position of window {nr} | 2900 win_screenpos({nr}) List get screen position of window {nr} |
2900 win_splitmove({nr}, {target} [, {options}]) | 2901 win_splitmove({nr}, {target} [, {options}]) |
2901 Number move window {nr} to split of {target} | 2902 Number move window {nr} to split of {target} |
2903 win_type([{nr}]) String type of window {nr} | |
2902 winbufnr({nr}) Number buffer number of window {nr} | 2904 winbufnr({nr}) Number buffer number of window {nr} |
2903 wincol() Number window column of the cursor | 2905 wincol() Number window column of the cursor |
2904 winheight({nr}) Number height of window {nr} | 2906 winheight({nr}) Number height of window {nr} |
2905 winlayout([{tabnr}]) List layout of windows in tab {tabnr} | 2907 winlayout([{tabnr}]) List layout of windows in tab {tabnr} |
2906 winline() Number window line of the cursor | 2908 winline() Number window line of the cursor |
3941 The highlight ID can be used with |synIDattr()| to obtain | 3943 The highlight ID can be used with |synIDattr()| to obtain |
3942 syntax information about the highlighting. | 3944 syntax information about the highlighting. |
3943 | 3945 |
3944 Can also be used as a |method|: > | 3946 Can also be used as a |method|: > |
3945 GetLnum()->diff_hlID(col) | 3947 GetLnum()->diff_hlID(col) |
3948 | |
3949 | |
3950 echoraw({expr}) *echoraw()* | |
3951 Output {expr} as-is, including unprintable characters. This | |
3952 can be used to output a terminal code. For example, to disable | |
3953 modifyOtherKeys: > | |
3954 call echoraw(&t_TE) | |
3955 < and to enable it again: > | |
3956 call echoraw(&t_TI) | |
3957 < Use with care, you can mess up the terminal this way. | |
3958 | |
3946 | 3959 |
3947 empty({expr}) *empty()* | 3960 empty({expr}) *empty()* |
3948 Return the Number 1 if {expr} is empty, zero otherwise. | 3961 Return the Number 1 if {expr} is empty, zero otherwise. |
3949 - A |List| or |Dictionary| is empty when it does not have any | 3962 - A |List| or |Dictionary| is empty when it does not have any |
3950 items. | 3963 items. |
10400 'splitright' are used. | 10413 'splitright' are used. |
10401 | 10414 |
10402 Can also be used as a |method|: > | 10415 Can also be used as a |method|: > |
10403 GetWinid()->win_splitmove(target) | 10416 GetWinid()->win_splitmove(target) |
10404 < | 10417 < |
10418 | |
10405 *winbufnr()* | 10419 *winbufnr()* |
10406 winbufnr({nr}) The result is a Number, which is the number of the buffer | 10420 winbufnr({nr}) The result is a Number, which is the number of the buffer |
10407 associated with window {nr}. {nr} can be the window number or | 10421 associated with window {nr}. {nr} can be the window number or |
10408 the |window-ID|. | 10422 the |window-ID|. |
10409 When {nr} is zero, the number of the buffer in the current | 10423 When {nr} is zero, the number of the buffer in the current |