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

227 active golfers, 869 entries

Leaderboard (lowest score wins):
27
#121 - Sina Khalili / @sinathagreat

02/17/2020 at 12:29PM

27
#122 - Oleg / @colega

02/17/2020 at 10:29PM

27
#123 - Noah / @NoahRosenzweig

02/18/2020 at 02:27PM

27
#124 - Dmitriy Olshevskiy / @olshevskiy_dv

02/24/2020 at 05:59PM

27
#125 - Mikael Brassman / @spoike

03/03/2020 at 03:56PM

27
#126 - Victor Chen / @VictorC89422342

03/04/2020 at 08:45PM

27
#127 - Andrei Popescu / @AndreiTheory

03/07/2020 at 12:34AM

27
#128 - Bitt Faulk / @bittfaulk

03/13/2020 at 07:49PM

27
#129 - Rune Warhuus / @DinkDonkNorway

03/27/2020 at 04:06PM

27
#130 - fedja golf / @FedjaGolf

04/13/2020 at 01:15AM

27
#131 - Toby de Havilland / @tobydeh

04/19/2020 at 12:32PM

27
#132 - dule2607 / @dule26071

05/01/2020 at 02:47PM

27
#133 - Robin Abrahamsson / @rqAbrahamsson

05/06/2020 at 07:12PM

27
#134 - Manish Baghel / @ManishBaghelz

05/14/2020 at 10:31AM

27
#135 - Kevin Keefe / @KevinKeefe5

05/15/2020 at 05:57PM

27
#136 - mocihan / @mocihan

06/29/2020 at 04:31PM

27
#137 - Brennan Barker / @BrennanJBarker

07/06/2020 at 04:10PM

27
#138 - artcha / @artushkevichs

07/08/2020 at 05:14PM

27
#139 - vito / @vito49999722

08/01/2020 at 06:01AM

27
#140 - vim-golf-requirement / @VRequirement

10/15/2020 at 03:52PM

27
#141 - Ifeoluwa Lawal / @IfeLawl

10/15/2020 at 04:02PM

28
#142 - Walker Boh / @walker_boh

02/07/2020 at 08:33AM

28
#143 - Gytis Vinclovas / @GytisVinclovas

02/07/2020 at 02:56PM

28
#144 - Jonathan Skeate / @jskeate

02/09/2020 at 07:43PM

28
#145 - Ahmed Hasan / @ahmedrhasan

03/01/2020 at 04:27PM

28
#146 - Ryan Nevius / @ryannevius

03/16/2020 at 09:46AM

28
#147 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:32PM

28
#148 - Daniel Fleischman / @vimgolfdaniel

04/08/2020 at 08:32AM

28
#149 - ProcessingTest / @ProcessingTest1

04/18/2020 at 01:46PM

28
#150 - Rob Pilling / @bobrippling

04/28/2020 at 09:53AM