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

192 active golfers, 734 entries

Leaderboard (lowest score wins):
22
#31 - John Braxler / @braxler

02/10/2020 at 03:00PM

22
#32 - Alexander Bessonov / @nonsleepr

02/13/2020 at 03:28PM

22
#33 - howanto / @ho_wan_

02/15/2020 at 09:35PM

22
#34 - Matthew / @Burfield12

02/17/2020 at 10:16PM

22
#35 - floyd / @floyd10086

02/22/2020 at 05:15PM

22
#36 - TheSemicolon / @the_semicolon_

02/25/2020 at 05:08PM

22
#37 - Tefe / @tefetic

03/02/2020 at 08:50PM

22
#38 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:59AM

22
#39 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 05:03PM

22
#40 - nicosierra / @nicosierra84

03/22/2020 at 08:05PM

22
#41 - zaid emad / @zaid_emad97

03/25/2020 at 11:38PM

22
#42 - Tinko Minko / @tandikula

04/10/2020 at 09:26PM

22
#43 - Stian Selnes / @stianse

04/26/2020 at 01:39PM

22
#44 - Sven Kõiv / @KoivSven

05/18/2020 at 08:43PM

22
#45 - 于吉星 / @fishermryn

05/23/2020 at 03:52AM

22
#46 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:20PM

22
#47 - soundscope / @__soundscope__

06/29/2020 at 09:27AM

22
#48 - Mitchell Horning / @HorningMitchell

07/14/2020 at 12:47AM

22
#49 - Saurabh / @Saurabh09299

07/23/2020 at 09:00AM

22
#50 - speisz / @speiszc

07/24/2020 at 09:44PM

23
#51 - stretchy / @stretch11013132

02/15/2020 at 09:03PM

23
#52 - TimMcGuire / @mcguire

02/18/2020 at 04:04PM

23
#53 - José / @AngelGaldamez

03/21/2020 at 06:45PM

23
#54 - koyumeishi / @koyumeishi_

03/27/2020 at 08:28PM

23
#55 - Ryan Burmeister-Morrison / @rburmorrison

04/11/2020 at 10:08PM

23
#56 - Ebi / @ehan6

04/19/2020 at 08:06AM

23
#57 - Bhagwan / @El_Bhagwan

05/11/2020 at 05:28AM

23
#58 - Greg Jebb / @jebbster

05/11/2020 at 12:35PM

23
#59 - Bradley Pankow / @BTPankow

08/06/2020 at 12:33AM

24
#60 - garry quested / @GQuested

02/07/2020 at 09:39AM