comparison runtime/doc/cmdline.txt @ 25619:29ec2c198c8d

Update runtime files Commit: https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 14 21:25:52 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Aug 2021 21:30:04 +0200
parents e69e7133c9cf
children 3b34837f4538
comparison
equal deleted inserted replaced
25618:b5765575dc5a 25619:29ec2c198c8d
1 *cmdline.txt* For Vim version 8.2. Last change: 2021 May 30 1 *cmdline.txt* For Vim version 8.2. Last change: 2021 Aug 06
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
168 When the result is a |List| the items are used 168 When the result is a |List| the items are used
169 as lines. They can have line breaks inside 169 as lines. They can have line breaks inside
170 too. 170 too.
171 When the result is a Float it's automatically 171 When the result is a Float it's automatically
172 converted to a String. 172 converted to a String.
173 See |registers| about registers. 173 Note that when you only want to move the
174 cursor and not insert anything, you must make
175 sure the expression evaluates to an empty
176 string. E.g.: >
177 <C-R><C-R>=setcmdpos(2)[-1]<CR>
178 < See |registers| about registers.
174 Implementation detail: When using the |expression| register 179 Implementation detail: When using the |expression| register
175 and invoking setcmdpos(), this sets the position before 180 and invoking setcmdpos(), this sets the position before
176 inserting the resulting string. Use CTRL-R CTRL-R to set the 181 inserting the resulting string. Use CTRL-R CTRL-R to set the
177 position afterwards. 182 position afterwards.
178 183