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. -- To Vim, or not to Vim. http://whileimautomaton.net/ --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
