Hi Ben!

On Mo, 18 Mär 2013, Ben Fritz wrote:

> On Monday, March 18, 2013 2:18:57 PM UTC-5, Charles Campbell wrote:
> > 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 "$".
> > 
> 
> No, this is wrong. Try it without the ":set cuc" and you'll see that the 
> cursor moves back to the end of the word "line" where it started. With the 
> ":set cuc" the cursor moves to the "a" above the end of the second line. Vim 
> seems to be forgetting where it's desired cursor column is.

That is because certain options reset curwin->w_set_curswant (all 
options that have the redraw flags P_RSTAT, P_RWIN, P_RBUF, P_RALL, 
P_RCLR). My guess is, that this is some vi-compatible thing.

This also happens for e.g. :set nu

Mit freundlichen Grüßen
Christian
-- 
Es ist lange her, daß sich die menschliche Phantasie die Hölle
ausgemalt hat, aber erst durch ihre jüngst erworbenen Fertigkeiten ist
sie in die Lage versetzt worden, ihre einstigen Vorstellungen zu
verwirklichen.
                -- Bertrand A. W. Russell

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


Raspunde prin e-mail lui