Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 54a480bb5db1600002939b54

increment by column in XML

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

Start file
<root>
  <row>
    <alpha>mail</alpha>
    <bravo>@@@@@</bravo>
  </row>
  <row>
    <alpha>male</alpha>
    <bravo>@@@@@</bravo>
  </row>
  <row>
    <alpha>mayel</alpha>
    <bravo>@@@@@</bravo>
  </row>
  <row>
    <alpha>mahel</alpha>
    <bravo>@@@@@</bravo>
  </row>
</root>
End file
<root>
  <row>
    <alpha>mail</alpha>
    <bravo>10000</bravo>
  </row>
  <row>
    <alpha>male</alpha>
    <bravo>10001</bravo>
  </row>
  <row>
    <alpha>mayel</alpha>
    <bravo>10002</bravo>
  </row>
  <row>
    <alpha>mahel</alpha>
    <bravo>10003</bravo>
  </row>
</root>

View Diff

@@ -1,18 +1,18 @@
 <root>
   <row>
     <alpha>mail</alpha>
-    <bravo>@@@@@</bravo>
+    <bravo>10000</bravo>
   </row>
   <row>
     <alpha>male</alpha>
-    <bravo>@@@@@</bravo>
+    <bravo>10001</bravo>
   </row>
   <row>
     <alpha>mayel</alpha>
-    <bravo>@@@@@</bravo>
+    <bravo>10002</bravo>
   </row>
   <row>
     <alpha>mahel</alpha>
-    <bravo>@@@@@</bravo>
+    <bravo>10003</bravo>
   </row>
-</root>
+</root>
\ No newline at end of file

Solutions by @_kafdot_:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @dreftymac

55 active golfers, 152 entries

Solutions by @_kafdot_:
20
#19 - kobby / @_kafdot_

01/13/2015 at 11:05PM

23
#>30 - kobby / @_kafdot_

01/13/2015 at 10:53PM

24
#>31 - kobby / @_kafdot_

01/13/2015 at 10:48PM

26
#>38 - kobby / @_kafdot_

01/13/2015 at 10:32PM

28
#>47 - kobby / @_kafdot_

01/11/2015 at 06:31AM

30
#>48 - kobby / @_kafdot_

01/10/2015 at 09:33PM