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

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

229 active golfers, 579 entries

Solutions by @ashkevinm:
35
#58 - 20speedvegan / @ashkevinm

04/13/2017 at 02:52PM

36
#>67 - 20speedvegan / @ashkevinm

04/13/2017 at 02:48PM

37
#>71 - 20speedvegan / @ashkevinm

04/13/2017 at 02:46PM

39
#>83 - 20speedvegan / @ashkevinm

04/13/2017 at 02:42PM

40
#>89 - 20speedvegan / @ashkevinm

04/13/2017 at 02:31PM

40
#>89 - 20speedvegan / @ashkevinm

04/13/2017 at 02:32PM

41
#>106 - 20speedvegan / @ashkevinm

04/13/2017 at 02:29PM

44
#>131 - 20speedvegan / @ashkevinm

04/13/2017 at 02:24PM