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 20 remaining solutions by signing in and submitting your own entry
#21 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


#22 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

22 active golfers, 73 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

34
#5 - Jay R / @RonatinJ

09/25/2022 at 07:24PM

34
#6 - moh ayaya / @AyayaMoh

09/17/2023 at 01:16PM

34
#7 - MonkieeBoi / @MonkieeBoi

02/09/2024 at 10:59AM

34
#8 - Peppa Pig / @PeppaPi95550250

05/28/2024 at 09:28AM

35
#9 - Mario Olofo / @mario_olofo

10/21/2019 at 01:57PM

35
#10 - Jean George / @JeanGeo20504212

03/08/2022 at 01:51PM

35
#11 - Luoyb / @Luoyb

11/03/2023 at 05:49AM

36
#12 - Иван / @wansmer

04/26/2023 at 09:04AM

47
#13 - Roger Stoltz / @rogsto1

03/08/2019 at 04:27PM

52
#14 - Bennett / @bennettbackward

12/19/2018 at 12:19PM

53
#15 - Andreas Nordahl / @andreasnordahl

11/30/2018 at 09:35AM

55
#16 - g-guy / @guydunigo

01/30/2023 at 12:30PM

57
#17 - Dax / @zacoxi

11/29/2018 at 07:48AM

57
#18 - PJ Frazer / @pj_frazer

12/01/2018 at 01:39AM

59
#19 - Phil Devitt / @GeneralHav0k

01/02/2019 at 10:29PM

66
#20 - Olivier Bégassat / @zk_evm

06/12/2023 at 12:48AM

74
#21 - Performa / @performa6400

11/30/2018 at 03:46PM

74
#22 - Jurica / @Jurica34581259

12/05/2018 at 02:46AM