On 13-Oct-2010 18:45, Ben Fritz wrote: > On Oct 13, 4:45 am, Sergii Boiko <[email protected]> wrote: >> When you work in normal mode and use 'f' for moving to some char, it >> can be repeated by ';' combination. But it's not a case for 't'. When >> you hit till-symbol and then press ';' cursor sticks and can't move >> further. So, to repeat till-search you should shift cursor one >> position further. >> >> I suggest change behaviour of 't' to be more handy and useful. So in >> case you already before 'till-char' combination t-char moves you to >> next till-char. And ';' combination works in the same fashion for >> repeating last till-search. >> > > On the contrary, I think it is the proposed new behavior that is > inconsistent. See what happens when you use a count: > > fp2; will move to the 3rd 'p' on a line. > tp2; will currently move to just before the 3rd 'p' on a line. Your > proposal would move to just before the 4th. > > Or when you aren't in exactly the same place to start with: > > 0dtpj0d; will delete from the start of the line to the first 'p' AND > DO THE SAME ON THE NEXT LINE. Your proposal would delete from the > start of the line to just before the 2nd 'p' on the next line.
I think you misunderstood the proposal. The jump behavior of ';' will only change if the cursor currently is before the 'till-char'; the behavior would not change in all other locations (as in your last example, on the start of the line). This would eliminate the "no-op" nature of a (countless) ';' command in those places. It seems like a useful change (that, because it breaks vi-compatibility, would need to be configurable in 'cpoptions'). Before providing a patch, it may be worthwhile to send around a Vimscript prototype (i.e. a mapping override of 't' and ';') first, so that more interested people could easily try this out and voice their opinions. -- regards, ingo -- 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
