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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 7 remaining solutions by signing in and submitting your own entry
#8 Performa / @performa6400 - Score: 74 - 11/30/18 @ 15:46
qqdw10<C-A>A:"";<Esc>hP0xjq9@qr1k<C-V>{r f"2i <Esc>jh.xPjjhPjPj2PjjjhPjPP<C-V>9k<Esc>ui <Esc><C-V>9k6I <Esc>ZZ

0 comments


#9 Jurica / @Jurica34581259 - Score: 74 - 12/05/18 @ 02:46
:%s/\(.*\):\(.*\)/ \2:      "\1";<CR>hxllli  <Esc>ki <Esc>3ki  <Esc>ki <Esc>ki <Esc>2ki  <Esc>ki  <Esc>ZZ

0 comments


Created by: @zacoxi

9 active golfers, 30 entries

Leaderboard (lowest score wins):
34
#1 - Saki Gw / @Sakigw

11/29/2018 at 04:03PM

34
#2 - Smylers / @Smylers2

11/29/2018 at 04:20PM

34
#3 - John Braxler / @braxler

11/29/2018 at 08:53PM

34
#4 - Turkey Man / @lvturkeyman

11/30/2018 at 08:47AM

53
#5 - Andreas Nordahl / @andreasnordahl

11/30/2018 at 09:35AM

57
#6 - Dax / @zacoxi

11/29/2018 at 07:48AM

57
#7 - PJ Frazer / @pj_frazer

12/01/2018 at 01:39AM

74
#8 - Performa / @performa6400

11/30/2018 at 03:46PM

74
#9 - Jurica / @Jurica34581259

12/05/2018 at 02:46AM