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):
25
#91 - Jason Neylon / @jasonneylon

02/10/2020 at 08:27PM

25
#92 - Matt / @Matt85092908

02/12/2020 at 10:55PM

25
#93 - Emil / @emilklindt

02/16/2020 at 09:14PM

25
#94 - tomo@D2S / @e_2_718281828

02/21/2020 at 02:39AM

25
#95 - bluemartian / @bluemartianz59

03/23/2020 at 02:39PM

25
#96 - Nathan Hartman / @hnathan918

04/01/2020 at 10:46PM

25
#97 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:29PM

25
#98 - Laurent Atlan / @laurentatlan1

05/11/2020 at 11:21AM

25
#99 - RaylanFox / @RaylanFox

06/18/2020 at 07:32PM

25
#100 - smlbrngr / @smlbrngr

07/13/2020 at 05:29PM

25
#101 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:00PM

25
#102 - Vildu / @Vildu3

09/30/2020 at 10:05AM

26
#103 - Linghao Du / @LinghaoDu

02/10/2020 at 03:40AM

26
#104 - Rebecca / @Rebecca62056794

02/17/2020 at 01:20AM

26
#105 - Under Blown / @iovuio

03/19/2020 at 01:52AM

26
#106 - Seve / @Seve_py

04/08/2020 at 01:32PM

26
#107 - Moatvald / @moatvald

04/12/2020 at 04:56PM

26
#108 - etherflow / @etherfl0w

05/04/2020 at 07:09AM

26
#109 - Miłosz Łakomy / @foobar01123

05/14/2020 at 04:54AM

26
#110 - khedd / @sinan_khedd

07/04/2020 at 02:08PM

26
#111 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 12:57AM

26
#112 - Christ / @Christ46234422

09/08/2020 at 02:48AM

27
#113 - Derek Schrock / @derekschrock

02/07/2020 at 04:13AM

27
#114 - Jackson T. Taylor / @JacksonTTaylor1

02/08/2020 at 09:44PM

27
#115 - Sir_Kosciej / @SKosciej

02/08/2020 at 10:32PM

27
#116 - j30ng / @leej0116outloo1

02/09/2020 at 04:09PM

27
#117 - Joe Reddington / @joereddington

02/10/2020 at 11:08AM

27
#118 - Steffen / @Pions90

02/14/2020 at 06:02PM

27
#119 - みむら / @rnirnu

02/16/2020 at 03:26AM

27
#120 - Franckdemda / @Franckdemda

02/16/2020 at 12:22PM