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

226 active golfers, 867 entries

Leaderboard (lowest score wins):
21
#31 - quemeraisc / @quemeraisc

11/23/2020 at 10:48AM

22
#32 - Jon Krause / @jkrause314

02/08/2020 at 03:57AM

22
#33 - Hyunjoon / @yi_hyunjoon

02/09/2020 at 02:22PM

22
#34 - Smylers / @Smylers2

02/09/2020 at 11:57PM

22
#35 - MegaPascal / @PascalMega

02/10/2020 at 11:01AM

22
#36 - John Braxler / @braxler

02/10/2020 at 03:00PM

22
#37 - Alexander Bessonov / @nonsleepr

02/13/2020 at 03:28PM

22
#38 - howanto / @ho_wan_

02/15/2020 at 09:35PM

22
#39 - Matthew / @Burfield12

02/17/2020 at 10:16PM

22
#40 - floyd / @floyd10086

02/22/2020 at 05:15PM

22
#41 - TheSemicolon / @the_semicolon_

02/25/2020 at 05:08PM

22
#42 - Tefe / @tefetic

03/02/2020 at 08:50PM

22
#43 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:59AM

22
#44 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 05:03PM

22
#45 - nicosierra / @nicosierra84

03/22/2020 at 08:05PM

22
#46 - zaid emad / @zaid_emad97

03/25/2020 at 11:38PM

22
#47 - Tinko Minko / @tandikula

04/10/2020 at 09:26PM

22
#48 - Stian Selnes / @stianse

04/26/2020 at 01:39PM

22
#49 - Sven Kõiv / @KoivSven

05/18/2020 at 08:43PM

22
#50 - 于吉星 / @fishermryn

05/23/2020 at 03:52AM

22
#51 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:20PM

22
#52 - soundscope / @__soundscope__

06/29/2020 at 09:27AM

22
#53 - Mitchell Horning / @HorningMitchell

07/14/2020 at 12:47AM

22
#54 - Saurabh / @Saurabh09299

07/23/2020 at 09:00AM

22
#55 - speisz / @speiszc

07/24/2020 at 09:44PM

22
#56 - Tanzeel Kazi / @tanzeelkazi

08/12/2020 at 04:46AM

22
#57 - Андрей / @appomsk

08/22/2020 at 12:15PM

22
#58 - 刘宏亮 / @CoyAkey

09/27/2020 at 07:24AM

22
#59 - Ivan Kwong / @IvanKwong5

09/28/2020 at 03:29PM

22
#60 - MySelf / @okmslf

10/19/2020 at 04:34PM