James Vega wrote: > Given a buffer that contains: > > foo Xbar > baYXz qux > Y > If you visually select from the start of the word bar, to the end of the > word baz and perform :'<,'>s/\%V\_.*\%V/X&Y/ the result will be: > > foo Xbar > bazYX qux > Y > > Is it a bug that the second XY is inserted or am I misunderstanding how > this is supposed to work?
It looks like the inserted text does change the Visual area, but deleting the selected text doesn't. I'll add a remark to the todo list. -- Permission is granted to read this message out aloud on Kings Cross Road, London, under the condition that the orator is properly dressed. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///