try this and it should make sense: x/.+\n.*/ x/\n/ d
with .* to the left of the \n you get the following: match foo\nbar and delete the \n match \nbaz and delete the \n match \nqux and delete the \n match \nquux and delete the \n match \n and delete it umbraticus ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tabb641f45805a1fc-M08971bc7fde7e72e022b08e3 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription