News for hackers. Stuff that matters.
Re:Can you solve this TextEditing challenge in less than 5 k... by dgc on Friday December 31, 2010 @06:07PM (#2056727)
:s/1*/\r/g <return>

11 keystrokes but it adds an additional new line, not sure if that would pass the test.

Re:Can you solve this TextEditing challenge in less than 5 k... by dgc on Friday December 31, 2010 @06:15PM (#2056740)
bah, the earlier poster got both my methods, oh well, teach me to read.
Re:Can you solve this TextEditing challenge in less than 5 k... by dgc on Friday December 31, 2010 @06:14PM (#2056737)
starting from Ex mode: qaa<return><esc>q25@a