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):
27
#181 - bonettimrc / @bonettimrc

04/24/2024 at 10:37PM

28
#182 - Walker Boh / @walker_boh

02/07/2020 at 08:33AM

28
#183 - Gytis Vinclovas / @GytisVinclovas

02/07/2020 at 02:56PM

28
#184 - Jonathan Skeate / @jskeate

02/09/2020 at 07:43PM

28
#185 - Ahmed Hasan / @ahmedrhasan

03/01/2020 at 04:27PM

28
#186 - Ryan Nevius / @ryannevius

03/16/2020 at 09:46AM

28
#187 - vvaannaa3 / @vvaannaa3

03/20/2020 at 03:32PM

28
#188 - Daniel Fleischman / @vimgolfdaniel

04/08/2020 at 08:32AM

28
#189 - ProcessingTest / @ProcessingTest1

04/18/2020 at 01:46PM

28
#190 - Rob Pilling / @bobrippling

04/28/2020 at 09:53AM

28
#191 - Yannick / @Yannick88147038

06/09/2020 at 05:51PM

28
#192 - Sergio / @SergioVl12

08/07/2020 at 11:11PM

28
#193 - Theo Sarrazin / @tshaero

08/20/2020 at 07:02AM

28
#194 - Matt Milliron / @valueiron

11/27/2020 at 09:36AM

28
#195 - John Doe / @JohnDoe75830353

12/24/2020 at 01:10AM

28
#196 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 03:42PM

28
#197 - ._. / @Katharsic

04/25/2022 at 04:52PM

28
#198 - Hector Bjernersjö / @HectorBjernersjo

07/10/2024 at 12:43PM

28
#199 - UrbanNinja1010 / @UrbanNinja1010

04/07/2025 at 08:54AM

29
#200 - xiote / @xiote2

02/06/2020 at 10:30PM

29
#201 - Pietrino Atzeni / @beoboo

02/14/2020 at 08:36AM

29
#202 - golferN / @golferN3

02/16/2020 at 08:25PM

29
#203 - asierrayk / @asierrayk

03/10/2020 at 09:07PM

29
#204 - Coder's Crib / @storyb3atz

03/21/2020 at 08:46AM

29
#205 - Romeo Valentin / @Seecez

03/23/2020 at 01:05PM

29
#206 - Daniel Habib / @danielhvs

07/21/2020 at 10:08PM

29
#207 - drGsus / @drGsus

07/25/2020 at 07:33AM

29
#208 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 06:55PM

29
#209 - 蔡徐坤真是爱吃屎 / @Hashub7

01/21/2021 at 03:47PM

29
#210 - Иван / @wansmer

04/20/2023 at 11:04PM