On Fri, Jul 05, 2013 at 12:25:59PM -0400, Ben Boeckel wrote: > On Fri, Jul 05, 2013 at 17:12:03 +0100, Nicholas Marriott wrote: > > The EOL tracking seems to be a bit broken at the moment but I don't > > think this is right either, it should work like emacs - when you go to > > the end of a line, that column becomes sticky. So with: > > > > xx > > abcdef > > abc > > > > If you go to the second line and then press C-e to move to th end, then > > press up, the cursor should be on the d. If you press up again it should > > be at the end of the first line, but then pressing down again should > > move it back to the d. > > > > At the moment tmux seems to do something completely weird but pretty > > sure I intended it to work like emacs... > > This seems different than Vim. In Vim, the '$' motion sets the current > column to a logical column meaning "the end of the line" which is used > when moving between lines. Just being on the end of the line doesn't set > this state. The intended behavior (using vi bindings): > > Initial (X is cursor location): > > aXc > defghi > jklm > > Command sequence "$jj": > > abX > defghX > jklX
Yes, this is different, in emacs it (^e down down) will give: abcX defXhi jklX The important one is: aXc de jklm Where the same (^e down down) will give: abcX deX jklX That is, it remembers it was at column 4 on the first line and stays there on the last line, even though it moved to column 3 on the second line. tmux gets the second one right but not the first :-(. > > Command sequence "ljj" or "ejj": > > abX > deXghi > jkXm This (right down down) will give the same in emacs. I think we should have the emacs behaviour although there seems to be at least a couple of bugs in the tmux implementation at the moment. > > Is this another vi/emacs difference? > > --Ben ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users