Krzysztof MaJ wrote:
VitaM,how to search in the file based on some regex and when it's matched delete the whole line automatically?
:g/pattern/d will delete all lines containing the pattern. You may also specify a range: :5,.g/pattern/d I suggest reading up on :help :g because there's more you can do with that command. Regards, Chip Campbell