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 @KersonHsiao:

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

216 active golfers, 545 entries

Solutions by @KersonHsiao:
34
#22 - Kerson Hsiao / @KersonHsiao

07/12/2012 at 07:31AM

36
#>62 - Kerson Hsiao / @KersonHsiao

07/12/2012 at 07:23AM

37
#>66 - Kerson Hsiao / @KersonHsiao

07/12/2012 at 07:20AM

46
#>139 - Kerson Hsiao / @KersonHsiao

07/12/2012 at 07:02AM