Wednesday, January 9, 2013

Re: Bug in i_CTRL-\_CTRL-O vs. documentation [was "Please explain Regex"]

On 01/09/13 07:53, Bram Moolenaar wrote:
> Tim Chase wrote:
>>>> {ctrl-\}{ctrl-o}yis
>
> It's not the CTRL-\ CTRL-O that moves the cursor, it is the command that
> follows that moves the cursor.
> It would not be useful to disallow moving the cursor, e.g., CTRL-\ CTRL-O W
> would not do anything.

My reading of it was "like CTRL-O (execute one command, return to
Insert mode) but don't move the cursor", was something like
"<esc>{one Normal-mode command}gi" to resume insertion where you
left off. My example above shows a useful example (as you state "it
would not be useful"), where I wanted to yank the current
word/sentence/paragraph into a register (for subsequent insertion
with i_CTRL-R), resuming insertion where I left off.

So if it is truly just a matter of behavior when the cursor is past
the EOL, perhaps the docs should reflect that narrow definition. It
might also be worth noting any behavior changes with various 've'
settings.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: