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):
27
#151 - mocihan / @mocihan

06/29/2020 at 04:31PM

27
#152 - Brennan Barker / @BrennanJBarker

07/06/2020 at 04:10PM

27
#153 - artcha / @artushkevichs

07/08/2020 at 05:14PM

27
#154 - vito / @vito49999722

08/01/2020 at 06:01AM

27
#155 - vim-golf-requirement / @VRequirement

10/15/2020 at 03:52PM

27
#156 - Ifeoluwa Lawal / @IfeLawl

10/15/2020 at 04:02PM

28
#157 - Walker Boh / @walker_boh

02/07/2020 at 08:33AM

28
#158 - Gytis Vinclovas / @GytisVinclovas

02/07/2020 at 02:56PM

28
#159 - Jonathan Skeate / @jskeate

02/09/2020 at 07:43PM

28
#160 - Ahmed Hasan / @ahmedrhasan

03/01/2020 at 04:27PM

28
#161 - Ryan Nevius / @ryannevius

03/16/2020 at 09:46AM

28
#162 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:32PM

28
#163 - Daniel Fleischman / @vimgolfdaniel

04/08/2020 at 08:32AM

28
#164 - ProcessingTest / @ProcessingTest1

04/18/2020 at 01:46PM

28
#165 - Rob Pilling / @bobrippling

04/28/2020 at 09:53AM

28
#166 - Yannick / @Yannick88147038

06/09/2020 at 05:51PM

28
#167 - Sergio / @SergioVl12

08/07/2020 at 11:11PM

28
#168 - Theo Sarrazin / @tshaero

08/20/2020 at 07:02AM

28
#169 - Matt Milliron / @valueiron

11/27/2020 at 09:36AM

28
#170 - John Doe / @JohnDoe75830353

12/24/2020 at 01:10AM

28
#171 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 03:42PM

29
#172 - xiote / @xiote2

02/06/2020 at 10:30PM

29
#173 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:36AM

29
#174 - golferN / @golferN3

02/16/2020 at 08:25PM

29
#175 - asierrayk / @asierrayk

03/10/2020 at 09:07PM

29
#176 - Coder's Crib / @storyb3atz

03/21/2020 at 08:46AM

29
#177 - Romeo Valentin / @Seecez

03/23/2020 at 01:05PM

29
#178 - Daniel Habib / @danielhvs

07/21/2020 at 10:08PM

29
#179 - drGsus / @drGsus

07/25/2020 at 07:33AM

29
#180 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 06:55PM