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

227 active golfers, 869 entries

Leaderboard (lowest score wins):
32
#181 - Renns / @Renns95250521

02/07/2020 at 10:53PM

32
#182 - Pham Tuan Anh / @anhpt379

02/16/2020 at 05:13AM

32
#183 - David Bragmark / @DBragmark

05/28/2020 at 06:51AM

32
#184 - Jan Sturm / @JanSturm77

07/10/2020 at 11:04PM

32
#185 - Thiago Becker / @beckert

08/07/2020 at 12:23PM

33
#186 - dustin / @unrelentingfox

02/07/2020 at 11:48PM

33
#187 - DieHard / @DieHard073055

02/16/2020 at 11:15PM

33
#188 - Sai Hemanth / @saihemanth9019

05/11/2020 at 01:04PM

33
#189 - Di Liu / @Skyerliu

06/20/2020 at 06:46PM

34
#190 - Benjamin Bass / @wesleybass42

02/17/2020 at 07:38PM

34
#191 - Adam Sanghera / @AdamSanghera

02/21/2020 at 06:26PM

34
#192 - Richard Pape / @Drippydik187

04/05/2020 at 01:59PM

34
#193 - Austin Letson / @austin_letson

04/25/2020 at 04:47PM

34
#194 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 03:37PM

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

02/15/2020 at 06:24PM

35
#196 - Carl Smestad / @CarlSmes

03/30/2020 at 05:47PM

35
#197 - Axel / @Axel07930943

05/05/2020 at 06:19AM

36
#198 - Greg Williams / @GregWill

02/13/2020 at 09:14PM

36
#199 - Mens Jender / @Todesshnizzle

02/16/2020 at 06:27PM

36
#200 - mat / @GrisMat_

02/23/2020 at 10:48PM

36
#201 - whale / @Hari84444713

03/01/2020 at 08:14PM

36
#202 - Siim Põder / @siimphh

07/04/2020 at 09:56AM

37
#203 - mapleseed / @idkanameqt

02/23/2020 at 03:00PM

37
#204 - jake / @eyes_low

02/26/2020 at 12:52AM

38
#205 - Muradil / @Muradil71938308

10/23/2020 at 01:48AM

39
#206 - Alexandre Gomes / @alexgomesdev

02/19/2020 at 04:30PM

39
#207 - Jason / @roosjason

04/06/2020 at 02:14AM

39
#208 - Matthieu Cneude / @Cneude_Matthieu

10/15/2020 at 03:49PM

40
#209 - 廖彥智 / @JeffYenchih

03/03/2020 at 10:01AM

40
#210 - volandkit / @volandkit

04/20/2020 at 04:50PM