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):
30
#211 - Larry McClenon / @uptotheroof

02/17/2020 at 06:47PM

30
#212 - Patrick / @Pattywack18

03/21/2020 at 01:46PM

30
#213 - Vaibhav Kaushik / @vnzongzna

03/31/2020 at 08:23PM

30
#214 - Puj / @MrPuj

06/15/2020 at 02:18PM

30
#215 - Kaustubh Murumkar / @k_austub_h

08/30/2020 at 01:38PM

30
#216 - xiaoao1024 / @xiaoao1024

05/11/2024 at 09:02AM

31
#217 - Jansen Price / @sumpygump

02/09/2020 at 09:22PM

31
#218 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:18AM

31
#219 - kdobmayer / @kdobmayer

02/14/2020 at 02:53AM

31
#220 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 12:34PM

31
#221 - None / @sh1chuang

02/20/2020 at 10:51AM

31
#222 - CJ Avilla / @cjav_dev

02/29/2020 at 11:09PM

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

04/28/2020 at 05:36PM

31
#224 - Filipe 💙 / @ABarroso

11/18/2020 at 09:55PM

32
#225 - Renns / @Renns95250521

02/07/2020 at 10:53PM

32
#226 - Pham Tuan Anh / @anhpt379

02/16/2020 at 05:13AM

32
#227 - David Bragmark / @DBragmark

05/28/2020 at 06:51AM

32
#228 - Jan Sturm / @JanSturm77

07/10/2020 at 11:04PM

32
#229 - Thiago Becker / @beckert

08/07/2020 at 12:23PM

32
#230 - Olivier Bégassat / @zk_evm

06/11/2023 at 07:33PM

33
#231 - dustin / @unrelentingfox

02/07/2020 at 11:48PM

33
#232 - DieHard / @DieHard073055

02/16/2020 at 11:15PM

33
#233 - Sai Hemanth / @saihemanth9019

05/11/2020 at 01:04PM

33
#234 - Di Liu / @Skyerliu

06/20/2020 at 06:46PM

33
#235 - fff / @fff51460170

01/13/2021 at 04:22AM

34
#236 - Benjamin Bass / @wesleybass42

02/17/2020 at 07:38PM

34
#237 - Adam Sanghera / @AdamSanghera

02/21/2020 at 06:26PM

34
#238 - Richard Pape / @Drippydik187

04/05/2020 at 01:59PM

34
#239 - Austin Letson / @austin_letson

04/25/2020 at 04:47PM

34
#240 - Christophe Kafrouni / @KafrouniChris

04/30/2020 at 03:37PM