diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-01-29 13:06:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-29 13:06:40 +0000 |
commit | 4dc0dd869972ddafc7d9ee5ea765645b818a6dc9 (patch) | |
tree | 1b59dc8582e8236af2059d4bc640d48a0f9d8285 /runtime | |
parent | 97c554d5149c2aa4a43d689c59563e77277265d4 (diff) |
patch 8.2.4252: generating the normal command table at runtime is inefficientv8.2.4252
Problem: Generating the normal command table at runtime is inefficient.
Solution: Generate the table with a Vim script and put it in a header file.
(Yegappan Lakshmanan, closes #9648)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 6 | ||||
-rw-r--r-- | runtime/doc/usr_41.txt | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index bfb63d0d59..f858440a9e 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -292,6 +292,7 @@ inputrestore() Number restore typeahead inputsave() Number save and clear typeahead inputsecret({prompt} [, {text}]) String like input() but hiding the text insert({object}, {item} [, {idx}]) List insert {item} in {object} [before {idx}] +internal_get_nv_cmdchar({idx}) Number command character at this index interrupt() none interrupt script execution invert({expr}) Number bitwise invert isdirectory({directory}) Number |TRUE| if {directory} is a directory @@ -4622,6 +4623,11 @@ insert({object}, {item} [, {idx}]) *insert()* Can also be used as a |method|: > mylist->insert(item) +< + *internal_get_nv_cmdchar()* +internal_get_nv_cmdchar({idx}) + Return the normal/visual mode command character at the + specified index. To be used only during the Vim build process. interrupt() *interrupt()* Interrupt script execution. It works more or less like the diff --git a/runtime/doc/usr_41.txt b/runtime/doc/usr_41.txt index 66b267f935..ec6db500a6 100644 --- a/runtime/doc/usr_41.txt +++ b/runtime/doc/usr_41.txt @@ -1110,6 +1110,7 @@ Testing: *test-functions* assert_nobeep() assert that a command does not cause a beep assert_fails() assert that a command fails assert_report() report a test failure + internal_get_nv_cmdchar() normal/visual command character at an index test_alloc_fail() make memory allocation fail test_autochdir() enable 'autochdir' during startup test_override() test with Vim internal overrides |