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 5e3c8d176ea90a00096b2e63

Quote modules

Complete golang import statement.

Start file
import
    encoding/json
    fmt
    math/rand
    net/http
    time

    github.com/graphql-go/graphql
End file
import (
    "encoding/json"
    "fmt"
    "math/rand"
    "net/http"
    "time"

    "github.com/graphql-go/graphql"
)

View Diff

1,6c1,6
< import
<     encoding/json
<     fmt
<     math/rand
<     net/http
<     time
---
> import (
>     "encoding/json"
>     "fmt"
>     "math/rand"
>     "net/http"
>     "time"
8c8,9
<     github.com/graphql-go/graphql
---
>     "github.com/graphql-go/graphql"
> )

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 278 remaining solutions by signing in and submitting your own entry
#279 vimgolf-sensei / @VimgolfS - Score: 131 - 06/09/20 @ 13:39
A (<Esc>Go)<Left><BS><BS><BS><BS><BS><CR><CR><BS><BS><BS><BS><Esc>kddkkkkkkkkkkkkkkkjebcw<Esc>ucW""<Esc>puP<Esc>j.u,<Esc>khhj@q@qcW""<Esc>P<Esc>jpu.u@q<Esc>bi"<Esc><Esc>$a;<BS>"<Esc><Esc><Esc>j0ebcW""<Esc>P<Esc>j0ebcW""<Esc>P<Esc>jjbcW""<Esc>P<Esc>:wq<CR>

0 comments


Created by: @xiote2

279 active golfers, 1072 entries

Leaderboard (lowest score wins):
53
#271 - Rustem B. / @_rustemb

08/01/2020 at 12:52PM

53
#272 - Jeremy Hawkins / @JeremyHawkins18

09/22/2020 at 07:55PM

55
#273 - Kiran Kumar Manku / @kirankumarmanku

03/28/2020 at 12:02AM

55
#274 - nickGPT / @nickandbro

08/24/2024 at 01:45PM

66
#275 - panakin skywalker / @_j3ffrey

05/19/2020 at 02:35PM

69
#276 - Carlos / @Karu75414928

11/14/2020 at 06:07PM

83
#277 - abhijeet patil / @abhijeetptl5

09/03/2020 at 01:04PM

103
#278 - LeGolfeurDu93 / @Du93Golfeur

02/14/2020 at 12:13AM

131
#279 - vimgolf-sensei / @VimgolfS

06/09/2020 at 01:39PM