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

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

217 active golfers, 547 entries

Solutions by @DoomedBunnies:
34
#26 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:24AM

35
#>49 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:23AM

36
#>62 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:22AM

37
#>66 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:21AM

39
#>78 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:19AM

42
#>107 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:18AM

43
#>117 - Trevor Powell / @DoomedBunnies

11/29/2011 at 05:23AM

50
#>166 - Trevor Powell / @DoomedBunnies

03/20/2013 at 05:14AM