Sunday, April 12, 2015

Re: MacVim: "ce" and "cw" both seem to do the same thing: Delete the word starting from the cursor to the end of the word and enable Insert mode.

On Sun, Apr 12, 2015 at 12:45 PM, Bidit Mazumder
<bidit.mazumder@gmail.com> wrote:
> I'm using MacVim (Snapshot 70) and, in Normal mode, "ce" and "cw" both seem to do the same thing: Delete the word starting from the cursor to the end of the word and enable Insert mode.
>
> However, the motion "e" moves the cursor to the end of the word; while the motion "w" moves the cursor to the first character of the next word.
>
> Also, "de" and "dw" are both working properly:
>
> "de" deletes the word starting from the cursor to the end of the word.
> "dw" deletes the word starting from the cursor to the start of the next word.
>
> Am I missing something here?


It's a long-standing issue. See:

- https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/42BkI0qV-aAJ
- https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/bSu0KOHDCSUJ
- http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/

Justin M. Keyes

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: