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

Quote modules

Complete golang import statement.

Start file
import
    encoding/json
    fmt
    math/rand
    net/http
    time

    github.com/graphql-go/graphql
End file
import (
    "encoding/json"
    "fmt"
    "math/rand"
    "net/http"
    "time"

    "github.com/graphql-go/graphql"
)

View Diff

1,6c1,6
< import
<     encoding/json
<     fmt
<     math/rand
<     net/http
<     time
---
> import (
>     "encoding/json"
>     "fmt"
>     "math/rand"
>     "net/http"
>     "time"
8c8,9
<     github.com/graphql-go/graphql
---
>     "github.com/graphql-go/graphql"
> )

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 193 remaining solutions by signing in and submitting your own entry
#194 vimgolf-sensei / @VimgolfS - Score: 131 - 06/09/20 @ 13:39
A (<Esc>Go)<Left><BS><BS><BS><BS><BS><CR><CR><BS><BS><BS><BS><Esc>kddkkkkkkkkkkkkkkkjebcw<Esc>ucW""<Esc>puP<Esc>j.u,<Esc>khhj@q@qcW""<Esc>P<Esc>jpu.u@q<Esc>bi"<Esc><Esc>$a;<BS>"<Esc><Esc><Esc>j0ebcW""<Esc>P<Esc>j0ebcW""<Esc>P<Esc>jjbcW""<Esc>P<Esc>:wq<CR>

0 comments


Created by: @xiote2

194 active golfers, 746 entries

Leaderboard (lowest score wins):
24
#61 - garry quested / @GQuested

02/07/2020 at 09:39AM

24
#62 - Sander Vanhove / @SanderVhove

02/08/2020 at 09:13PM

24
#63 - KingYames / @JamesZeHunter

02/17/2020 at 02:19AM

24
#64 - Sean Dewar / @seandewar

03/12/2020 at 06:50PM

24
#65 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 04:18PM

24
#66 - Lop / @Numeross_

04/02/2020 at 10:30PM

24
#67 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

05/26/2020 at 02:26PM

24
#68 - RockerZZY / @rocker_zzy

05/28/2020 at 08:42AM

24
#69 - JLObject / @powful_panda

07/02/2020 at 02:04PM

24
#70 - Martin Bielik / @mabielik

08/10/2020 at 04:59PM

25
#71 - Ollin Boer Bohan / @madebyollin

02/06/2020 at 11:03PM

25
#72 - Arijus / @argshook

02/07/2020 at 02:48PM

25
#73 - Clemens Köhler / @clemens_khler

02/07/2020 at 05:05PM

25
#74 - Niko Kivelä / @Tovrleaf

02/09/2020 at 04:41PM

25
#75 - Jason Neylon / @jasonneylon

02/10/2020 at 08:27PM

25
#76 - Matt / @Matt85092908

02/12/2020 at 10:55PM

25
#77 - Emil / @emilklindt

02/16/2020 at 09:14PM

25
#78 - tomo@D2S / @e_2_718281828

02/21/2020 at 02:39AM

25
#79 - bluemartian / @bluemartianz59

03/23/2020 at 02:39PM

25
#80 - Nathan Hartman / @hnathan918

04/01/2020 at 10:46PM

25
#81 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:29PM

25
#82 - Laurent Atlan / @laurentatlan1

05/11/2020 at 11:21AM

25
#83 - RaylanFox / @RaylanFox

06/18/2020 at 07:32PM

25
#84 - smlbrngr / @smlbrngr

07/13/2020 at 05:29PM

26
#85 - Linghao Du / @LinghaoDu

02/10/2020 at 03:40AM

26
#86 - Rebecca / @Rebecca62056794

02/17/2020 at 01:20AM

26
#87 - Under Blown / @iovuio

03/19/2020 at 01:52AM

26
#88 - Seve / @__Seve__

04/08/2020 at 01:32PM

26
#89 - Moatvald / @moatvald

04/12/2020 at 04:56PM

26
#90 - etherflow / @etherfl0w

05/04/2020 at 07:09AM