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 5bff6e560d5dc0000ca3485b

simple format (3)

reverse two column values!

Start file
one:1
two:2
three:3
four:4
five:5
six:6
seven:7
eight:8
nine:9
ten:10
End file
 1:        "one";
 2:        "two";
 3:      "three";
 4:       "four";
 5:       "five";
 6:        "six";
 7:      "seven";
 8:      "eight";
 9:       "nine";
10:        "ten";

View Diff

 1:        "one";
 2:        "two";
 3:      "three";
 4:       "four";
 5:       "five";
 6:        "six";
 7:      "seven";
 8:      "eight";
 9:       "nine";
10:        "ten";

Solutions by @wansmer:

Unlock 2 remaining solutions by signing in and submitting your own entry
Created by: @zacoxi

24 active golfers, 86 entries

Solutions by @wansmer:
36
#12 - Иван / @wansmer

04/26/2023 at 09:04AM

44
#>13 - Иван / @wansmer

04/26/2023 at 08:30AM