Wednesday, August 8, 2012

Re: not a bug in i_CTRL-\_CTRL-o (was "capitalize the current word in insert mode")

Hi Tim!

On Mi, 08 Aug 2012, Tim Chase wrote:

> On 08/08/12 06:19, Christian Brabandt wrote:
> > On Mi, 08 Aug 2012, Tim Chase wrote:
> >> :inoremap ~ <c-bslash><c-o>gUB
> >
> > This is a misunderstanding on your side. What i_Ctrl-\_Ctrl-O does (I
> > assume you mean 'o' and not 'u'?),
>
> Doh, yes...type it once wrong and copy/paste elsewhere and it just
> makes me look like an idiot :)

The fact, that I guessed your key correctly means, I suspected a
copy-paste error.

> > is it doesn't move the cursor when entering temporary normal mode
> > like Ctrl-O does (e.g. it steps the cursor back by one char, like
> > ESC does).
> >
> > But of course you can still move the cursor using a normal mode
> > command. And then the cursor will stay there.
>
> Ah, okay. I'd (mis)understood it as "I want to issue one
> normal-mode command and regardless of what happens, the cursor
> should remain where it is currently", not "don't move the cursor
> back one character"

Here is your chance to improve the documentation. I am sure Bram happily
accepts a change which clarifies the actual behaviour and prevents
misunderstandings ;)

Mit freundlichen Grüßen
Christian

--
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: