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

50 active golfers, 194 entries

Leaderboard (lowest score wins):
25
#31 - Toby Hawkins / @Toby_Hawkins

03/17/2020 at 02:13AM

25
#32 - Joshua Marple / @JoshuaMarple1

03/26/2021 at 10:15PM

27
#33 - xiote / @xiote2

02/07/2020 at 12:00AM

27
#34 - Renns / @Renns95250521

02/08/2020 at 10:27AM

27
#35 - roudens / @roudens2

05/08/2021 at 03:41PM

27
#36 - :wq / @write_quit_22

05/18/2021 at 05:54PM

28
#37 - Derek Schrock / @derekschrock

02/07/2020 at 04:14AM

28
#38 - Emil / @emilklindt

02/07/2020 at 07:23AM

28
#39 - vvaannaa3 / @vvaannaa3

03/21/2020 at 11:11PM

29
#40 - Seve / @Seve_py

04/06/2020 at 02:49PM

29
#41 - Swaraj Dash / @swarajdash_

11/16/2021 at 09:51PM

30
#42 - Falafel Palapel / @falafelpalapel

02/15/2020 at 03:49PM

31
#43 - Walker Boh / @walker_boh

02/07/2020 at 08:43AM

31
#44 - Jason / @roosjason

05/13/2020 at 10:09AM

31
#45 - RockerZZY / @rocker_zzy

06/03/2020 at 02:07AM

33
#46 - Kha Nguyen / @__ngtrongkha

05/30/2021 at 08:57AM

34
#47 - かぎりん / @kagilinn

03/02/2020 at 01:27AM

35
#48 - Fake Konto / @F4k3K0n70

02/15/2021 at 05:46PM

35
#49 - Delon / @delonleonard

09/15/2021 at 12:30AM

115
#50 - Jean Arhancet / @JArhancet

02/18/2021 at 12:45PM