I need to figure out a regular expression to delete all lines that do not begin with either "+" or "-".
I want to print a paper copy of a large diff file, but it shows 5 or so lines before and …
Sometimes I want to see how many times a certain function is called in a file or a code block. How do you do that? I am using Vim 7.2.
I presume you have to use !wc or some such.
I need to move the contents of every second line up to the line above such that line2's data is alongside line1's, either comma or space separated works.
Input:
line1
line2
line3
line4
Output:
line1 line2
line3 line4
…