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):
22
#61 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 03:54PM

22
#62 - chocolate / @chocola81394123

10/27/2020 at 11:14AM

23
#63 - stretchy / @stretch11013132

02/15/2020 at 09:03PM

23
#64 - TimMcGuire / @mcguire

02/18/2020 at 04:04PM

23
#65 - José / @AngelGaldamez

03/21/2020 at 06:45PM

23
#66 - koyumeishi / @koyumeishi_

03/27/2020 at 08:28PM

23
#67 - Ryan Burmeister-Morrison / @rburmorrison

04/11/2020 at 10:08PM

23
#68 - Ebi / @ehan6

04/19/2020 at 08:06AM

23
#69 - Bhagwan / @El_Bhagwan

05/11/2020 at 05:28AM

23
#70 - Greg Jebb / @jebbster

05/11/2020 at 12:35PM

23
#71 - Bradley Pankow / @BTPankow

08/06/2020 at 12:33AM

23
#72 - Matthias / @Matthia78044730

09/01/2020 at 03:22PM

23
#73 - AAbraxas / @AAbraxas1

11/03/2020 at 09:17PM

24
#74 - garry quested / @GQuested

02/07/2020 at 09:39AM

24
#75 - Sander Vanhove / @SanderVhove

02/08/2020 at 09:13PM

24
#76 - KingYames / @JamesZeHunter

02/17/2020 at 02:19AM

24
#77 - Sean Dewar / @seandewar

03/12/2020 at 06:50PM

24
#78 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 04:18PM

24
#79 - Lop / @Numeross_

04/02/2020 at 10:30PM

24
#80 - pady. 🇪🇺 🇩🇪 🇷🇴 / @hundertzwoelf_

05/26/2020 at 02:26PM

24
#81 - RockerZZY / @rocker_zzy

05/28/2020 at 08:42AM

24
#82 - JLObject / @powful_panda

07/02/2020 at 02:04PM

24
#83 - Martin Bielik / @mabielik

08/10/2020 at 04:59PM

24
#84 - Blake Tereau / @BlakeTereau

08/26/2020 at 11:12PM

24
#85 - mstronam / @mstronam

10/04/2020 at 05:19PM

24
#86 - Demian Martinez / @demianuco

11/02/2020 at 09:18AM

25
#87 - Ollin Boer Bohan / @madebyollin

02/06/2020 at 11:03PM

25
#88 - Arijus / @argshook

02/07/2020 at 02:48PM

25
#89 - Clemens Köhler / @clemens_khler

02/07/2020 at 05:05PM

25
#90 - Niko Kivelä / @Tovrleaf

02/09/2020 at 04:41PM