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

226 active golfers, 867 entries

Leaderboard (lowest score wins):
43
#211 - Anil Narayan / @AnilNarayan2013

07/13/2020 at 04:10AM

43
#212 - mindgitrwx / @mindgitrwx

08/02/2020 at 08:01AM

45
#213 - vimmer / @vimmer14

04/15/2020 at 06:04PM

46
#214 - Jacob Shomstein / @jshoms

06/16/2020 at 03:24AM

47
#215 - Magnetic Spark / @Magnetic_Spark

02/25/2020 at 03:43AM

47
#216 - Ben Wainwright / @benwainwrightuk

09/28/2020 at 09:38PM

50
#217 - stevan / @stevan76107116

02/24/2020 at 11:44PM

50
#218 - GolF / @lolgolflol

05/16/2020 at 07:14AM

53
#219 - Rustem B. / @_rustemb

08/01/2020 at 12:52PM

53
#220 - Jeremy Hawkins / @JeremyHawkins18

09/22/2020 at 07:55PM

55
#221 - Kiran Kumar Manku / @kirankumarmanku

03/28/2020 at 12:02AM

66
#222 - Jeff Anderson / @_j3ffrey

05/19/2020 at 02:35PM

69
#223 - Carlos / @Karu75414928

11/14/2020 at 06:07PM

83
#224 - abhijeet patil / @abhijeetptl5

09/03/2020 at 01:04PM

103
#225 - LeGolfeurDu93 / @Du93Golfeur

02/14/2020 at 12:13AM

131
#226 - vimgolf-sensei / @VimgolfS

06/09/2020 at 01:39PM