On Sat, Nov 21, 2009 at 10:33:34AM +0900, Kana Natsuno wrote:
> 
> On Sat, 21 Nov 2009 09:53:33 +0900, Wu, Yue <[email protected]> wrote:
> > 5. Now you will see vim has deleted line 1 to line 5.
> >
> > When folding is unfolded, then :2,4d will work as expected.
> 
> It's an intentional behavior.  See :help fold-behavior - it describes:
> 
> > For Ex commands the range is adjusted to always start at the first line of a
> > closed fold and end at the last line of a closed fold.  Thus this command: >
> >     :s/foo/bar/g
> > when used with the cursor on a closed fold, will replace "foo" with "bar" in
> > all lines of the fold.
> 

Thanks for info, but I don't understand the logical.

If I don't want this behavior, how to disable it temporaryly?

-- 
Hi,
Wu, Yue

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui