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

250 active golfers, 981 entries

Leaderboard (lowest score wins):
22
#61 - 刘宏亮 / @CoyAkey

09/27/2020 at 07:24AM

22
#62 - Ivan Kwong / @IvanKwong5

09/28/2020 at 03:29PM

22
#63 - MySelf / @okmslf

10/19/2020 at 04:34PM

22
#64 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 03:54PM

22
#65 - chocolate / @chocola81394123

10/27/2020 at 11:14AM

22
#66 - hepebexè / @hepebexe

11/29/2020 at 09:14PM

22
#67 - Neverlandrunner / @neverlandrunner

12/06/2020 at 12:49PM

22
#68 - roudens / @roudens2

12/08/2020 at 04:53AM

22
#69 - Dax / @zacoxi

12/11/2020 at 09:21AM

22
#70 - 영훈 / @odjfnrtm

01/05/2021 at 02:20AM

22
#71 - François Marais / @maraisf

05/18/2021 at 12:39PM

23
#72 - stretchy / @stretch11013132

02/15/2020 at 09:03PM

23
#73 - TimMcGuire / @mcguire

02/18/2020 at 04:04PM

23
#74 - José / @AngelGaldamez

03/21/2020 at 06:45PM

23
#75 - koyumeishi / @koyumeishi_

03/27/2020 at 08:28PM

23
#76 - Ryan Burmeister-Morrison / @rburmorrison

04/11/2020 at 10:08PM

23
#77 - Ebi / @ehan6

04/19/2020 at 08:06AM

23
#78 - Bhagwan / @El_Bhagwan

05/11/2020 at 05:28AM

23
#79 - Greg Jebb / @jebbster

05/11/2020 at 12:35PM

23
#80 - Bradley Pankow / @BTPankow

08/06/2020 at 12:33AM

23
#81 - Matthias / @Matthia78044730

09/01/2020 at 03:22PM

23
#82 - AAbraxas / @AAbraxas1

11/03/2020 at 09:17PM

23
#83 - Ray Dennis / @raysden

12/23/2020 at 08:55PM

23
#84 - Andreas Siegrist / @andreaszwei

01/21/2021 at 09:51PM

24
#85 - garry quested / @GQuested

02/07/2020 at 09:39AM

24
#86 - Sander Vanhove / @SanderVhove

02/08/2020 at 09:13PM

24
#87 - KingYames / @JamesZeHunter

02/17/2020 at 02:19AM

24
#88 - Sean Dewar / @seandewar

03/12/2020 at 06:50PM

24
#89 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 04:18PM

24
#90 - Lop / @Numeross_

04/02/2020 at 10:30PM