OmnipotentEntity wrote:
"On "a" as expected?" That wasn't the behavior I was expecting. Sorry if it was unclear. I
expected the cursor to be on "e" at the end of "line" because I didn't expect :set cuc to modify
the cursor column (because it's not a motion.)
Having :set cuc modify the cursor column breaks expected cursor positioning if
you have a plugin that automatically turns :set cuc on and off. (For instance
https://github.com/chreekat/vim-paren-crosshairs ).
I used vim -u NONE -N filename
with the filename having the contents you specified. Did the $k, so the
cursor ends up on "." in the second line.
Upon doing :set cuc , the vertical line including the "a" and the "."
is highlighting. The cursor is still on the ".", too.
That seems to be what I'd expect should happen so far.
Next: k
Results in cursor on the first line's "." just after the "first line."
text. This is also what I'd expect given the default option sol=1
value. This behavior appears to differ from what you observed.
So, I moved the cursor to the "." in the text "case."
Next: $hj moved the cursor to the "." in the second line.
Next: set cuc<enter> k
This ended up with the cursor on "a". Again, this is what I'd expect --
because the cursor got onto the "." via a vertical move, not a "$".
Perhaps you'd prefer to use "set ve=all"?
Regards,
C Campbell
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.