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 5e3ca51e6ea90a00096b3007

Quote modules (ver.2)

Complete golang import statement.

Start file
import
    log
    net/http

    graphql github.com/graph-gophers/graphql-go
    github.com/graph-gophers/graphql-go/relay
End file
import (
    "log"
    "net/http"

    graphql "github.com/graph-gophers/graphql-go"
    "github.com/graph-gophers/graphql-go/relay"
)

View Diff

1,3c1,3
< import
<     log
<     net/http
---
> import (
>     "log"
>     "net/http"
5,6c5,7
<     graphql github.com/graph-gophers/graphql-go
<     github.com/graph-gophers/graphql-go/relay
---
>     graphql "github.com/graph-gophers/graphql-go"
>     "github.com/graph-gophers/graphql-go/relay"
> )

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 33 remaining solutions by signing in and submitting your own entry
#34 かぎりん / @kagilinn - Score: 34 - 03/02/20 @ 01:27
A (<Esc>j^qqi"<Esc>A"<Esc>j^q@qjww@q@qo)<Esc>0dwZZ

0 comments


Created by: @xiote2

34 active golfers, 112 entries

Leaderboard (lowest score wins):
22
#1 - dryaurtis / @dryaurtis

02/09/2020 at 08:55AM

22
#2 - howanto / @ho_wan_

02/22/2020 at 08:50PM

22
#3 - countime / @countime1

03/12/2020 at 09:57AM

22
#4 - Oleg / @colega

03/31/2020 at 05:56PM

23
#5 - Jon Krause / @jkrause314

02/08/2020 at 05:37AM

23
#6 - John Braxler / @braxler

02/10/2020 at 04:15PM

23
#7 - jrddp / @jrddp0

02/12/2020 at 07:43PM

23
#8 - Kyle X. Clark / @KyXr_Clark

02/15/2020 at 03:33PM

23
#9 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:47AM

23
#10 - floyd / @floyd10086

03/17/2020 at 07:53AM

23
#11 - Quark / @PuzzleQuark

03/22/2020 at 08:00PM

23
#12 - Filipe Brandenburger / @filbranden

03/30/2020 at 04:16AM

23
#13 - Tinko Minko / @tandikula

04/10/2020 at 09:39PM

23
#14 - José / @AngelGaldamez

05/07/2020 at 02:01AM

23
#15 - Jonáš Šerých / @serycjon

05/15/2020 at 09:55PM

24
#16 - Saki Gw / @Sakigw

02/07/2020 at 10:26AM

24
#17 - Smylers / @Smylers2

02/07/2020 at 11:41AM

24
#18 - Ryan Nevius / @ryannevius

03/21/2020 at 08:19PM

24
#19 - 于吉星 / @fishermryn

05/29/2020 at 03:13AM

25
#20 - garry quested / @GQuested

02/07/2020 at 02:04PM

25
#21 - golferN / @golferN3

02/28/2020 at 05:44PM

25
#22 - 杜撰 / @NOrUixDzwW4BbCP

03/15/2020 at 08:21PM

25
#23 - Toby Hawkins / @Toby_Hawkins

03/17/2020 at 02:13AM

27
#24 - xiote / @xiote2

02/07/2020 at 12:00AM

27
#25 - Renns / @Renns95250521

02/08/2020 at 10:27AM

28
#26 - Derek Schrock / @derekschrock

02/07/2020 at 04:14AM

28
#27 - Emil / @emilklindt

02/07/2020 at 07:23AM

28
#28 - vvaannaa3 / @vvaannaa3

03/21/2020 at 11:11PM

29
#29 - Seve / @__Seve__

04/06/2020 at 02:49PM

30
#30 - Falafel Palapel / @falafelpalapel

02/15/2020 at 03:49PM