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):
34
#241 - said / @said13664960

12/16/2020 at 12:28PM

34
#242 - ever0de / @ever0de

05/27/2021 at 09:55AM

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

02/15/2020 at 06:24PM

35
#244 - Carl Smestad / @CarlSmes

03/30/2020 at 05:47PM

35
#245 - Axel / @Axel07930943

05/05/2020 at 06:19AM

35
#246 - Jacob / @FuPingstar

02/01/2024 at 05:58PM

36
#247 - Greg Williams / @GregWill

02/13/2020 at 09:14PM

36
#248 - Mens Jender / @m3nder__

02/16/2020 at 06:27PM

36
#249 - mat / @GrisMat_

02/23/2020 at 10:48PM

36
#250 - whale / @Hari84444713

03/01/2020 at 08:14PM

36
#251 - Siim Põder / @siimphh

07/04/2020 at 09:56AM

37
#252 - mapleseed / @idkanameqt

02/23/2020 at 03:00PM

37
#253 - jake / @eyes_low

02/26/2020 at 12:52AM

38
#254 - Muradil / @MuradilUdun

10/23/2020 at 01:48AM

39
#255 - Alexandre Gomes / @alexgomesdev

02/19/2020 at 04:30PM

39
#256 - Jason / @roosjason

04/06/2020 at 02:14AM

39
#257 - Matthieu Cneude / @Cneude_Matthieu

10/15/2020 at 03:49PM

40
#258 - 廖彥智 / @JeffYenchih

03/03/2020 at 10:01AM

40
#259 - volandkit / @volandkit

04/20/2020 at 04:50PM

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

02/13/2020 at 08:59AM

42
#261 - Jordan Joe Watson / @jordanjoewatson

12/02/2020 at 08:20PM

43
#262 - Anil Narayan / @AnilNarayan2013

07/13/2020 at 04:10AM

43
#263 - mindgitrwx / @mindgitrwx

08/02/2020 at 08:01AM

45
#264 - vimmer / @vimmer14

04/15/2020 at 06:04PM

45
#265 - Nedko Nedkov / @NedkoNedkov6

12/20/2020 at 01:18PM

46
#266 - Jacob Shomstein / @jshoms

06/16/2020 at 03:24AM

47
#267 - Magnetic Spark / @Magnetic_Spark

02/25/2020 at 03:43AM

47
#268 - Ben Wainwright / @benwainwrightuk

09/28/2020 at 09:38PM

50
#269 - stevan / @stevan76107116

02/24/2020 at 11:44PM

50
#270 - GolF / @lolgolflol

05/16/2020 at 07:14AM