Hi, how do I delete a set of lines which matches some regular expression in vi ??? :%d/reg.expression/ doesn't seem to work ! I know the following works, but it is cumbersome. :!grep -v "reg.expression" % > tmp.file -Saravanan