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

246 active golfers, 969 entries

Leaderboard (lowest score wins):
34
#211 - said / @said13664960

12/16/2020 at 12:28PM

35
#212 - Владек / @escept1c

02/15/2020 at 06:24PM

35
#213 - Carl Smestad / @CarlSmes

03/30/2020 at 05:47PM

35
#214 - Axel / @Axel07930943

05/05/2020 at 06:19AM

36
#215 - Greg Williams / @GregWill

02/13/2020 at 09:14PM

36
#216 - Mens Jender / @Todesshnizzle

02/16/2020 at 06:27PM

36
#217 - mat / @GrisMat_

02/23/2020 at 10:48PM

36
#218 - whale / @Hari84444713

03/01/2020 at 08:14PM

36
#219 - Siim Põder / @siimphh

07/04/2020 at 09:56AM

37
#220 - mapleseed / @idkanameqt

02/23/2020 at 03:00PM

37
#221 - jake / @eyes_low

02/26/2020 at 12:52AM

38
#222 - Muradil / @Muradil71938308

10/23/2020 at 01:48AM

39
#223 - Alexandre Gomes / @alexgomesdev

02/19/2020 at 04:30PM

39
#224 - Jason / @roosjason

04/06/2020 at 02:14AM

39
#225 - Matthieu Cneude / @Cneude_Matthieu

10/15/2020 at 03:49PM

40
#226 - 廖彥智 / @JeffYenchih

03/03/2020 at 10:01AM

40
#227 - volandkit / @volandkit

04/20/2020 at 04:50PM

41
#228 - Максим Селиверстов / @max_developer

02/13/2020 at 08:59AM

42
#229 - Jordan Joe Watson / @jordanjoewatson

12/02/2020 at 08:20PM

43
#230 - Anil Narayan / @AnilNarayan2013

07/13/2020 at 04:10AM

43
#231 - mindgitrwx / @mindgitrwx

08/02/2020 at 08:01AM

45
#232 - vimmer / @vimmer14

04/15/2020 at 06:04PM

45
#233 - Nedko Nedkov / @NedkoNedkov6

12/20/2020 at 01:18PM

46
#234 - Jacob Shomstein / @jshoms

06/16/2020 at 03:24AM

47
#235 - Magnetic Spark / @Magnetic_Spark

02/25/2020 at 03:43AM

47
#236 - Ben Wainwright / @benwainwrightuk

09/28/2020 at 09:38PM

50
#237 - stevan / @stevan76107116

02/24/2020 at 11:44PM

50
#238 - GolF / @lolgolflol

05/16/2020 at 07:14AM

53
#239 - Rustem B. / @_rustemb

08/01/2020 at 12:52PM

53
#240 - Jeremy Hawkins / @JeremyHawkins18

09/22/2020 at 07:55PM