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):
28
#151 - Yannick / @Yannick88147038

06/09/2020 at 05:51PM

28
#152 - Sergio / @SergioVl12

08/07/2020 at 11:11PM

28
#153 - Theo Sarrazin / @tshaero

08/20/2020 at 07:02AM

28
#154 - Matt Milliron / @valueiron

11/27/2020 at 09:36AM

29
#155 - xiote / @xiote2

02/06/2020 at 10:30PM

29
#156 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:36AM

29
#157 - golferN / @golferN3

02/16/2020 at 08:25PM

29
#158 - asierrayk / @asierrayk

03/10/2020 at 09:07PM

29
#159 - Coder's Crib / @storyb3atz

03/21/2020 at 08:46AM

29
#160 - Romeo Valentin / @Seecez

03/23/2020 at 01:05PM

29
#161 - Daniel Habib / @danielhvs

07/21/2020 at 10:08PM

29
#162 - drGsus / @drGsus

07/25/2020 at 07:33AM

29
#163 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 06:55PM

29
#164 - moh ayaya / @AyayaMoh

11/04/2020 at 06:57PM

30
#165 - Devon Morris / @DevoMorris

02/07/2020 at 02:30AM

30
#166 - Anthony BERNARD / @TweetTontony

02/10/2020 at 09:36PM

30
#167 - Valdimar / @genkobar

02/17/2020 at 12:52AM

30
#168 - Larry McClenon / @uptotheroof

02/17/2020 at 06:47PM

30
#169 - Patrick / @Pattywack18

03/21/2020 at 01:46PM

30
#170 - Vaibhav Kaushik / @vnzongzna

03/31/2020 at 08:23PM

30
#171 - Puj / @MrPuj

06/15/2020 at 02:18PM

30
#172 - Kaustubh Murumkar / @k_austub_h

08/30/2020 at 01:38PM

31
#173 - Jansen Price / @sumpygump

02/09/2020 at 09:22PM

31
#174 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:18AM

31
#175 - kdobmayer / @kdobmayer

02/14/2020 at 02:53AM

31
#176 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 12:34PM

31
#177 - None / @sh1chuang

02/20/2020 at 10:51AM

31
#178 - CJ Avilla / @wizemanip

02/29/2020 at 11:09PM

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

04/28/2020 at 05:36PM

31
#180 - Filipe Barroso 💙 / @ABarroso

11/18/2020 at 09:55PM