Re: Inconsistent jump after undo of multi-line change

2011-09-05 Fir de Conversatie Jürgen Krämer
Hi, bootleq wrote: 2011/9/5 James Vega james...@jamessan.com mailto:james...@jamessan.com On Sun, Sep 04, 2011 at 10:47:53AM +0800, bootleq wrote: About the automatically added jump: It' reasonable when undoing a single change. But if we do many changes at one

Re: Inconsistent jump after undo of multi-line change

2011-09-05 Fir de Conversatie bootleq
Thank you, I can keep jumplist unchanged now. But back to my first message, the cursor still silently move to first changed line. 2011/9/5 Jürgen Krämer jottka...@googlemail.com Hi, bootleq wrote: 2011/9/5 James Vega james...@jamessan.com mailto:james...@jamessan.com On Sun,

Re: Inconsistent jump after undo of multi-line change

2011-09-04 Fir de Conversatie James Vega
On Sun, Sep 04, 2011 at 10:47:53AM +0800, bootleq wrote: About the automatically added jump: It' reasonable when undoing a single change. But if we do many changes at one function, one undo block, we might want to keep the cursor unchanged after undo. You can use the :keepjumps command to

Re: Inconsistent jump after undo of multi-line change

2011-09-04 Fir de Conversatie bootleq
Yes, thanks, but in this case, with 1) :keepjumps | call setline(1, 'bar') 2) :keepjumps | undo it still jump to line 1. 2011/9/5 James Vega james...@jamessan.com On Sun, Sep 04, 2011 at 10:47:53AM +0800, bootleq wrote: About the automatically added jump: It' reasonable when undoing a

Inconsistent jump after undo of multi-line change

2011-09-03 Fir de Conversatie bootleq
Hi, I found a inconsistent behavior. Original text: 1 foo 2 foo 3 foo Put cursor at line 3, then `:call setline(1, 'bar')` text become: 1 bar 2 foo 3 foo Then press 'u' to undo 'bar' to 'foo'. 1) There will be a jump to line 1 (the first line in changed lines) 2) However, if we called `:call