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

283 active golfers, 1090 entries

Leaderboard (lowest score wins):
22
#61 - 于吉星 / @fishermryn

05/23/2020 at 03:52AM

22
#62 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:20PM

22
#63 - soundscope / @__soundscope__

06/29/2020 at 09:27AM

22
#64 - Mitchell Horning / @HorningMitchell

07/14/2020 at 12:47AM

22
#65 - Saurabh / @Saurabh09299

07/23/2020 at 09:00AM

22
#66 - speisz / @speiszc

07/24/2020 at 09:44PM

22
#67 - Tanzeel Kazi / @tanzeelkazi

08/12/2020 at 04:46AM

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

08/22/2020 at 12:15PM

22
#69 - 刘宏亮 / @AkeyCoy

09/27/2020 at 07:24AM

22
#70 - Ivan Kwong / @IvanKwong5

09/28/2020 at 03:29PM

22
#71 - MySelf / @okmslf

10/19/2020 at 04:34PM

22
#72 - Leland Paul Kusmer / @lelandpaul

10/22/2020 at 03:54PM

22
#73 - chocolate / @chocola81394123

10/27/2020 at 11:14AM

22
#74 - hepebexè / @hepebexe

11/29/2020 at 09:14PM

22
#75 - Neverlandrunner / @neverlandrunner

12/06/2020 at 12:49PM

22
#76 - roudens / @roudens2

12/08/2020 at 04:53AM

22
#77 - Dax / @zacoxi

12/11/2020 at 09:21AM

22
#78 - 영훈 / @odjfnrtm

01/05/2021 at 02:20AM

22
#79 - Francois Marais / @maraisf

05/18/2021 at 12:39PM

22
#80 - Humbaba / @humbabu

01/04/2022 at 10:25PM

22
#81 - moh ayaya / @AyayaMoh

08/29/2023 at 06:17PM

22
#82 - EtherFan / @ether_fan

02/25/2024 at 06:00PM

22
#83 - efettf / @efettf

11/01/2024 at 09:14PM

23
#84 - stretchy / @stretch11013132

02/15/2020 at 09:03PM

23
#85 - TimMcGuire / @mcguire

02/18/2020 at 04:04PM

23
#86 - Aioriya / @AioriyaDonk

03/21/2020 at 06:45PM

23
#87 - koyumeishi / @koyumeishi_

03/27/2020 at 08:28PM

23
#88 - Ryan Burmeister-Morrison / @rburmorrison

04/11/2020 at 10:08PM

23
#89 - Ebi / @ehan6

04/19/2020 at 08:06AM

23
#90 - iBhagwan / @iiBhagwan

05/11/2020 at 05:28AM