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 52 remaining solutions by signing in and submitting your own entry
#53 Jean Arhancet / @JArhancet - Score: 115 - 02/18/21 @ 12:45
a<C-Right><Up><Right><Right> (<Down><Down><Down><Down><Down><Down><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><CR><BS><BS><BS><BS>)<Up><Up><Up><Up><Up><Right><Right><Right>"<Right><Right><Right>"<Down><Left><Left><Left><Left><Left>"<C-Right><C-Right><C-Right><Left><Up><C-Right><Right><C-Right><C-Right><Right><Right><Right><Right>"<Down><Down><Down><Up><Left><Left>"<C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><Right><Right>"<Down>r<BS>'<C-Left><Right><BS>"<C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left>"<Esc>:wq!<CR>

0 comments


Created by: @xiote2

53 active golfers, 197 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

22
#5 - A A A / @37fatos

02/02/2021 at 05:25PM

22
#6 - Jung Yeon Park / @park_jungy

02/06/2021 at 11:14PM

22
#7 - Roman Privalov / @RomanPrivalov

09/14/2021 at 04:22PM

23
#8 - Jon Krause / @jkrause314

02/08/2020 at 05:37AM

23
#9 - John Braxler / @braxler

02/10/2020 at 04:15PM

23
#10 - jrddp / @jrddp0

02/12/2020 at 07:43PM

23
#11 - Kyle X. Clark / @KyXr_Clark

02/15/2020 at 03:33PM

23
#12 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:47AM

23
#13 - floyd / @floyd10086

03/17/2020 at 07:53AM

23
#14 - Quark / @PuzzleQuark

03/22/2020 at 08:00PM

23
#15 - Filipe Brandenburger / @filbranden

03/30/2020 at 04:16AM

23
#16 - Tinko Minko / @tandikula

04/10/2020 at 09:39PM

23
#17 - Aioriya / @AioriyaDonk

05/07/2020 at 02:01AM

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

05/15/2020 at 09:55PM

23
#19 - Jianfeng / @Jianfen22425058

01/31/2021 at 07:57AM

23
#20 - hepebexè / @hepebexe

02/11/2021 at 04:52PM

23
#21 - pikjes / @pikjes2

03/21/2021 at 07:14PM

23
#22 - russellzhaomao / @russellzhaomao

05/24/2022 at 03:31AM

24
#23 - Saki Gw / @Sakigw

02/07/2020 at 10:26AM

24
#24 - Smylers / @Smylers2

02/07/2020 at 11:41AM

24
#25 - Ryan Nevius / @ryannevius

03/21/2020 at 08:19PM

24
#26 - 于吉星 / @fishermryn

05/29/2020 at 03:13AM

24
#27 - 김범준 / @kmbmjn

02/17/2021 at 06:06AM

25
#28 - garry quested / @GQuested

02/07/2020 at 02:04PM

25
#29 - golferN / @golferN3

02/28/2020 at 05:44PM

25
#30 - 杜撰 / @NOrUixDzwW4BbCP

03/15/2020 at 08:21PM