diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-08-14 21:25:52 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-08-14 21:25:52 +0200 |
commit | 6aa57295cfbe8f21c15f0671e45fd53cf990d404 (patch) | |
tree | 21d5b91f8af47cf5cecea7b615cd84a65a108c30 /runtime/doc/cmdline.txt | |
parent | bfb2bb16bc69441fa3ec13caacb2c94637a8a0ec (diff) | |
download | vim-git-6aa57295cfbe8f21c15f0671e45fd53cf990d404.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/doc/cmdline.txt')
-rw-r--r-- | runtime/doc/cmdline.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 5564f5d37..0c472bb61 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 8.2. Last change: 2021 May 30 +*cmdline.txt* For Vim version 8.2. Last change: 2021 Aug 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -170,7 +170,12 @@ CTRL-R {register} *c_CTRL-R* *c_<C-R>* too. When the result is a Float it's automatically converted to a String. - See |registers| about registers. + Note that when you only want to move the + cursor and not insert anything, you must make + sure the expression evaluates to an empty + string. E.g.: > + <C-R><C-R>=setcmdpos(2)[-1]<CR> +< See |registers| about registers. Implementation detail: When using the |expression| register and invoking setcmdpos(), this sets the position before inserting the resulting string. Use CTRL-R CTRL-R to set the |