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):
26
#91 - Miłosz Łakomy / @foobar01123

05/14/2020 at 04:54AM

26
#92 - khedd / @sinan_khedd

07/04/2020 at 02:08PM

26
#93 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 12:57AM

27
#94 - Derek Schrock / @derekschrock

02/07/2020 at 04:13AM

27
#95 - Jackson T. Taylor / @JacksonTTaylor1

02/08/2020 at 09:44PM

27
#96 - Sir_Kosciej / @SKosciej

02/08/2020 at 10:32PM

27
#97 - j30ng / @leej0116outloo1

02/09/2020 at 04:09PM

27
#98 - Joe Reddington / @joereddington

02/10/2020 at 11:08AM

27
#99 - Steffen / @Pions90

02/14/2020 at 06:02PM

27
#100 - みむら / @rnirnu

02/16/2020 at 03:26AM

27
#101 - Franckdemda / @Franckdemda

02/16/2020 at 12:22PM

27
#102 - Sina Khalili / @sinathagreat

02/17/2020 at 12:29PM

27
#103 - Oleg / @colega

02/17/2020 at 10:29PM

27
#104 - Noah / @NoahRosenzweig

02/18/2020 at 02:27PM

27
#105 - Dmitriy Olshevskiy / @olshevskiy_dv

02/24/2020 at 05:59PM

27
#106 - Mikael Brassman / @spoike

03/03/2020 at 03:56PM

27
#107 - Victor Chen / @VictorC89422342

03/04/2020 at 08:45PM

27
#108 - Andrei Popescu / @AndreiTheory

03/07/2020 at 12:34AM

27
#109 - Bitt Faulk / @bittfaulk

03/13/2020 at 07:49PM

27
#110 - Rune Warhuus / @DinkDonkNorway

03/27/2020 at 04:06PM

27
#111 - fedja golf / @FedjaGolf

04/13/2020 at 01:15AM

27
#112 - Toby de Havilland / @tobydeh

04/19/2020 at 12:32PM

27
#113 - dule2607 / @dule26071

05/01/2020 at 02:47PM

27
#114 - Robin Abrahamsson / @rqAbrahamsson

05/06/2020 at 07:12PM

27
#115 - Manish Baghel / @ManishBaghelz

05/14/2020 at 10:31AM

27
#116 - Kevin Keefe / @KevinKeefe5

05/15/2020 at 05:57PM

27
#117 - mocihan / @mocihan

06/29/2020 at 04:31PM

27
#118 - Brennan Barker / @BrennanJBarker

07/06/2020 at 04:10PM

27
#119 - artcha / @artushkevichs

07/08/2020 at 05:14PM

27
#120 - vito / @vito49999722

08/01/2020 at 06:01AM