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 59 remaining solutions by signing in and submitting your own entry
#60 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

60 active golfers, 239 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

22
#8 - Aly Thobani / @alythobani

05/29/2024 at 11:26PM

22
#9 - Peppa Pig / @PeppaPigSg

07/02/2024 at 06:39AM

22
#10 - nickGPT / @nickandbro

08/24/2024 at 01:42PM

23
#11 - Jon Krause / @jkrause314

02/08/2020 at 05:37AM

23
#12 - John Braxler / @braxler

02/10/2020 at 04:15PM

23
#13 - jrddp / @jrddp0

02/12/2020 at 07:43PM

23
#14 - Kyle X. Clark / @KyXr_Clark

02/15/2020 at 03:33PM

23
#15 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:47AM

23
#16 - floyd / @floyd10086

03/17/2020 at 07:53AM

23
#17 - Quark / @PuzzleQuark

03/22/2020 at 08:00PM

23
#18 - Filipe Brandenburger / @filbranden

03/30/2020 at 04:16AM

23
#19 - Tinko Minko / @tandikula

04/10/2020 at 09:39PM

23
#20 - Aioriya / @AioriyaDonk

05/07/2020 at 02:01AM

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

05/15/2020 at 09:55PM

23
#22 - Jianfeng / @Jianfen22425058

01/31/2021 at 07:57AM

23
#23 - hepebexè / @hepebexe

02/11/2021 at 04:52PM

23
#24 - pikjes / @pikjes2

03/21/2021 at 07:14PM

23
#25 - russellzhaomao / @russellzhaomao

05/24/2022 at 03:31AM

23
#26 - moh ayaya / @AyayaMoh

08/29/2023 at 05:09PM

23
#27 - Luoyb / @Luoyb

10/27/2023 at 03:25AM

23
#28 - naka / @nak38223985244

12/11/2023 at 12:17PM

24
#29 - Saki Gw / @Sakigw

02/07/2020 at 10:26AM

24
#30 - "Smylers" / @Smylers2

02/07/2020 at 11:41AM