using :v/.../normal dd - in a folded file
I have a long SQL script, for which I use folding. Every (multi-line) SQL statement is folded.
Suppose I want to delete all the lines which don't contain the string "varchar". I run
Surprisingly, everything is deleted. It is as if "dd" was pressed on each (closed) fold, deleting all its lines. Since each fold contains at least one line without "varchar", all folds are "dd"-ed.
which really deletes only lines which don't contain "varchar".
Is this a feature, or does it need attention?
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