If you need to delete massive amounts of text in Vi try these next time:
<d><G> deletes everything below the cursor
<d><1><G> deletes everything above the cursor.
<d>/foo deletes everything till the next occurence of foo
And finally:
<m><a> and <d><`><a> deletes everything from your cursor to where you placed the a mark.
Some of these things really come in useful, every once in a while.
[tags]vi, vim, tips, linux, editor, keystrokes[/tags]
thank you
I like the Allman style as it presents a better visual cue of the code flow. Given today’s volume of code, we software engineers need a higher level of inspection to warp our head around a code. Particularly large body of code.