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):
29
#181 - moh ayaya / @AyayaMoh

11/04/2020 at 06:57PM

29
#182 - 蔡徐坤真是爱吃屎 / @Hashub7

01/21/2021 at 03:47PM

30
#183 - Devon Morris / @DevoMorris

02/07/2020 at 02:30AM

30
#184 - Anthony BERNARD / @TweetTontony

02/10/2020 at 09:36PM

30
#185 - Valdimar / @genkobar

02/17/2020 at 12:52AM

30
#186 - Larry McClenon / @uptotheroof

02/17/2020 at 06:47PM

30
#187 - Patrick / @Pattywack18

03/21/2020 at 01:46PM

30
#188 - Vaibhav Kaushik / @vnzongzna

03/31/2020 at 08:23PM

30
#189 - Puj / @MrPuj

06/15/2020 at 02:18PM

30
#190 - Kaustubh Murumkar / @k_austub_h

08/30/2020 at 01:38PM

31
#191 - Jansen Price / @sumpygump

02/09/2020 at 09:22PM

31
#192 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:18AM

31
#193 - kdobmayer / @kdobmayer

02/14/2020 at 02:53AM

31
#194 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 12:34PM

31
#195 - None / @sh1chuang

02/20/2020 at 10:51AM

31
#196 - CJ Avilla / @wizemanip

02/29/2020 at 11:09PM

31
#197 - {{ profile.name }} / @bytesonly

04/28/2020 at 05:36PM

31
#198 - Filipe Barroso 💙 / @ABarroso

11/18/2020 at 09:55PM

32
#199 - Renns / @Renns95250521

02/07/2020 at 10:53PM

32
#200 - Pham Tuan Anh / @anhpt379

02/16/2020 at 05:13AM

32
#201 - David Bragmark / @DBragmark

05/28/2020 at 06:51AM

32
#202 - Jan Sturm / @JanSturm77

07/10/2020 at 11:04PM

32
#203 - Thiago Becker 😷 / @beckert

08/07/2020 at 12:23PM

33
#204 - dustin / @unrelentingfox

02/07/2020 at 11:48PM

33
#205 - DieHard / @DieHard073055

02/16/2020 at 11:15PM

33
#206 - Sai Hemanth / @saihemanth9019

05/11/2020 at 01:04PM

33
#207 - Di Liu / @Skyerliu

06/20/2020 at 06:46PM

33
#208 - fff / @fff51460170

01/13/2021 at 04:22AM

34
#209 - Benjamin Bass / @wesleybass42

02/17/2020 at 07:38PM

34
#210 - Adam Sanghera / @AdamSanghera

02/21/2020 at 06:26PM