On 8/27/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > Nikolai Weibull wrote:
> > So it seems that there's something strange going on in what line is > > being set for the ] mark when performing a search under these > > conditions, coupled with patterns that match at the very beginning of > > a line. > There are a few special ways operators handle movements. Note that the > "/" is "exclusive", which means the end position of the cursor is not > included in the operated text. When this position is at the start of > the line, that line is not included. It's like the cursor ends up just > after the end of the previous line. Try it with "d/pat<CR>". This is > to make it Vi compatible. And mostly it does what you expect. I guess I confused myself when I tested this with "V/pat<CR>". Hm, I can't think of a good way to check if the motion was due to a search (/), as I could then add one to the end for this particular command, where I in fact want the motion to be inclusive. I can always do "g:/p\zsat<CR>", I suppose, but that's additional typing... nikolai --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
