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

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

24 active golfers, 86 entries

Solutions by @andreasnordahl:
53
#16 - Andreas Nordahl / @andreasnordahl

11/30/2018 at 09:35AM