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

188 active golfers, 718 entries

Leaderboard (lowest score wins):
47
#181 - Magnetic Spark / @Magnetic_Spark

02/25/2020 at 03:43AM

50
#182 - stevan / @stevan76107116

02/24/2020 at 11:44PM

50
#183 - GolF / @lolgolflol

05/16/2020 at 07:14AM

53
#184 - Rustem B. / @_rustemb

08/01/2020 at 12:52PM

55
#185 - Kiran Kumar Manku / @kirankumarmanku

03/28/2020 at 12:02AM

66
#186 - Jeff Anderson / @_j3ffrey

05/19/2020 at 02:35PM

103
#187 - LeGolfeurDu93 / @Du93Golfeur

02/14/2020 at 12:13AM

131
#188 - vimgolf-sensei / @VimgolfS

06/09/2020 at 01:39PM