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):
28
#121 - Walker Boh / @walker_boh

02/07/2020 at 08:33AM

28
#122 - Gytis Vinclovas / @GytisVinclovas

02/07/2020 at 02:56PM

28
#123 - Jonathan Skeate / @jskeate

02/09/2020 at 07:43PM

28
#124 - Ahmed Hasan / @ahmedrhasan

03/01/2020 at 04:27PM

28
#125 - Ryan Nevius / @ryannevius

03/16/2020 at 09:46AM

28
#126 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:32PM

28
#127 - Daniel Fleischman / @vimgolfdaniel

04/08/2020 at 08:32AM

28
#128 - ProcessingTest / @ProcessingTest1

04/18/2020 at 01:46PM

28
#129 - Rob Pilling / @bobrippling

04/28/2020 at 09:53AM

28
#130 - Yannick / @Yannick88147038

06/09/2020 at 05:51PM

28
#131 - Sergio / @SergioVl12

08/07/2020 at 11:11PM

29
#132 - xiote / @xiote2

02/06/2020 at 10:30PM

29
#133 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:36AM

29
#134 - golferN / @golferN3

02/16/2020 at 08:25PM

29
#135 - asierrayk / @asierrayk

03/10/2020 at 09:07PM

29
#136 - Coder's Crib / @storyb3atz

03/21/2020 at 08:46AM

29
#137 - Romeo Valentin / @Seecez

03/23/2020 at 01:05PM

29
#138 - Daniel Habib / @danielhvs

07/21/2020 at 10:08PM

29
#139 - drGsus / @drGsus

07/25/2020 at 07:33AM

30
#140 - Devon Morris / @DevoMorris

02/07/2020 at 02:30AM

30
#141 - Anthony BERNARD / @TweetTontony

02/10/2020 at 09:36PM

30
#142 - Valdimar / @genkobar

02/17/2020 at 12:52AM

30
#143 - Larry McClenon / @uptotheroof

02/17/2020 at 06:47PM

30
#144 - Patrick / @Pattywack18

03/21/2020 at 01:46PM

30
#145 - Vaibhav Kaushik / @vnzongzna

03/31/2020 at 08:23PM

30
#146 - Puj / @MrPuj

06/15/2020 at 02:18PM

31
#147 - Jansen Price / @sumpygump

02/09/2020 at 09:22PM

31
#148 - Falafel Palapel / @falafelpalapel

02/11/2020 at 05:18AM

31
#149 - kdobmayer / @kdobmayer

02/14/2020 at 02:53AM

31
#150 - Rollo Jenkins / @rollo_jenkins

02/18/2020 at 12:34PM