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 13 remaining solutions by signing in and submitting your own entry
#14 Walker Boh / @walker_boh - Score: 31 - 02/07/20 @ 08:43
A (<Esc>+<C-Q>G$A"<Esc><C-Q>GI"<Esc>2jx+xWPjo)<Esc><<ZZ

0 comments


Created by: @xiote2

14 active golfers, 28 entries

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

02/09/2020 at 08:55AM

23
#2 - Jon Krause / @jkrause314

02/08/2020 at 05:37AM

23
#3 - John Braxler / @braxler

02/10/2020 at 04:15PM

23
#4 - jrddp / @jrddp0

02/12/2020 at 07:43PM

23
#5 - Kyle X. Clark / @KyXr_Clark

02/15/2020 at 03:33PM

24
#6 - Saki Gw / @Sakigw

02/07/2020 at 10:26AM

24
#7 - Smylers / @Smylers2

02/07/2020 at 11:41AM

25
#8 - garry quested / @GQuested

02/07/2020 at 02:04PM

27
#9 - xiote / @xiote2

02/07/2020 at 12:00AM

27
#10 - Renns / @Renns95250521

02/08/2020 at 10:27AM

28
#11 - Derek Schrock / @derekschrock

02/07/2020 at 04:14AM

28
#12 - Emil / @emilklindt

02/07/2020 at 07:23AM

30
#13 - Falafel Palapel / @falafelpalapel

02/15/2020 at 03:49PM

31
#14 - Walker Boh / @walker_boh

02/07/2020 at 08:43AM