Saturday, October 17, 2020

Re: Inconsistent overkill behavior on various motions

On 10/18/20 1:12 AM, Brennan Vincent wrote:
> I am investigating the behavior of various motions when [count] exceeds
> the actual number of objects.
>
> Given buffer "abc abc":
>
> "2$" (with cursor on first column) does nothing (presumably an error).
> "2^" (cursor on last column) has the same behavior as "^".
> "2w" (cursor on first column) jumps to the last character on the line
> (same behavior as "2e").
>
> Comparison with the other vi implementations I have available:
>
> Neovim matches the behavior of Vim.
>
> Nvi errors on "2^"; otherwise the behavior is the same as Vim.
>
> Zsh with `bindkey -v` matches Vim.
>
> Readline apps in vi mode (e.g., bash with `set -o vi`) go as far as
> possible in all three cases (i.e., they match Vim, except that on "2$"
> they jump to the end of the line).
>
>

Actually it seems nvi matches vim in all cases. So bash/readline is the
only outlier.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/05399976-c96e-a769-ae9e-bd2867808749%40umanwizard.com.

No comments: