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).
--
--
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/5ac35684-8597-b9bd-a744-fb4f933d9b90%40umanwizard.com.
Saturday, October 17, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment