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 4d1ace6c142cca7133000033

Reformat some Python

Fix some very bizarrely laid-out code.

Start file
def fed(j):
    n = sum([1000000000,
              200000000,
               30000000,
                4000000,
                 500000,
                  60000,
                   7000,
                    800,
                     90,
                     j])
    print('abc'+str(n)+'def')
End file
def fed(j):
    n = 1234567890 + j
    print('abc%ddef' % n)

View Diff

2,12c2,3
<     n = sum([1000000000,
<               200000000,
<                30000000,
<                 4000000,
<                  500000,
<                   60000,
<                    7000,
<                     800,
<                      90,
<                      j])
<     print('abc'+str(n)+'def')
---
>     n = 1234567890 + j
>     print('abc%ddef' % n)

Solutions by @xav_kt:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @holizz

231 active golfers, 581 entries

Solutions by @xav_kt:
35
#53 - xavier kt / @xav_kt

02/05/2013 at 12:39AM

36
#>67 - xavier kt / @xav_kt

02/05/2013 at 12:38AM

37
#>71 - xavier kt / @xav_kt

02/05/2013 at 12:36AM

39
#>83 - xavier kt / @xav_kt

02/05/2013 at 12:35AM

40
#>88 - xavier kt / @xav_kt

02/05/2013 at 12:34AM

42
#>114 - xavier kt / @xav_kt

02/05/2013 at 12:32AM

45
#>139 - xavier kt / @xav_kt

02/05/2013 at 12:29AM

47
#>156 - xavier kt / @xav_kt

02/05/2013 at 12:26AM