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 by @udioica:

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

19 active golfers, 55 entries

Solutions by @udioica:
19
#5 - Urtica dioica / @udioica

12/10/2014 at 10:46PM