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 548879e3844403000250b6aa

JSON string rotation

Right value strings are misplaced. Just rotate them! I'm too kind with you guys and didn't included "strings with \" in it"!

Start file
{
 
"name"  :  "y64zqe0UKLO2w",
 
"id": "Le mal vient à cheval et le bonheur à pied.",
 
"proverb" : "fr",
 
"lang":"http:\/\/foo.com\/good\/id=",
   
"rating": 4.5,
 
"link" : "",
   
"status": {"success":true},
 
"description": "Happiness and misfortune"
}
End file
{
 
"name"  :  "Happiness and misfortune",
 
"id": "y64zqe0UKLO2w",
 
"proverb" : "Le mal vient à cheval et le bonheur à pied.",
 
"lang":"fr",
   
"rating": 4.5,
 
"link" : "http:\/\/foo.com\/good\/id=",
   
"status": {"success":true},
 
"description": ""
}

View Diff

2,5c2,5
<   "name"  :  "y64zqe0UKLO2w",
<   "id": "Le mal vient à cheval et le bonheur à pied.",
<   "proverb" : "fr",
<   "lang":"http:\/\/foo.com\/good\/id=",
---
>   "name"  :  "Happiness and misfortune",
>   "id": "y64zqe0UKLO2w",
>   "proverb" : "Le mal vient à cheval et le bonheur à pied.",
>   "lang":"fr",
7c7
<   "link" : "",
---
>   "link" : "http:\/\/foo.com\/good\/id=",
9c9
<   "description": "Happiness and misfortune"
---
>   "description": ""

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 21 remaining solutions by signing in and submitting your own entry
#22 AC / @quadface - Score: 42 - 04/29/15 @ 23:22
/"<CR>2nqdldnq3nqqlvnhpq4n@q4n@q6np8n@d26NPZZ

0 comments


Created by: @mcr05

22 active golfers, 64 entries

Leaderboard (lowest score wins):
19
#1 - Kai Yuan / @kentyuan

12/10/2014 at 08:33PM

19
#2 - John Braxler / @braxler

12/10/2014 at 08:36PM

19
#3 - Petro Тrouq / @zulolosi

12/10/2014 at 09:33PM

19
#4 - Tom Reznick / @threznick

12/10/2014 at 10:03PM

19
#5 - Urtica dioica / @udioica

12/10/2014 at 10:46PM

19
#6 - Sylvain Leroux / Yes, I Know IT ! / @Yes_I_Know_IT

04/28/2020 at 12:20AM

19
#7 - Berel94 / @Berel94

03/24/2024 at 10:38PM

19
#8 - Peppa Pig / @PeppaPigSg

06/28/2024 at 06:10AM

22
#9 - david hu / @chin33z

12/13/2014 at 05:05PM

24
#10 - Carlos López / @morrizon

01/04/2015 at 06:31PM

25
#11 - pftb12345 / @pftb12345

04/16/2015 at 07:19AM

26
#12 - Carlos A Henríquez Q / @lagunex

01/17/2015 at 04:45PM

28
#13 - Elizabeth / @sprinkles418

12/13/2014 at 01:07AM

31
#14 - Matt / @mcr05

12/10/2014 at 08:53PM

31
#15 - jared swarts / @JaredSwarts

12/12/2014 at 10:55PM

35
#16 - Robin Abrahamsson / @rqAbrahamsson

05/01/2020 at 06:07PM

35
#17 - nickGPT / @nickandbro

08/28/2024 at 04:49AM

37
#18 - Oliver Christ / @0liverChrist

02/13/2015 at 09:31PM

38
#19 - kungfuchad / @kungfuchad

12/11/2014 at 12:30PM

38
#20 - Fabio Branquinho / @branquif

11/12/2018 at 10:27AM

39
#21 - Melih Aktop / @mlhktp

11/03/2024 at 03:04PM

42
#22 - AC / @quadface

04/29/2015 at 11:22PM