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):
21
#31 - quemeraisc / @quemeraisc

11/23/2020 at 10:48AM

21
#32 - Ravi S Sinha / @ambidextrousTx

12/15/2020 at 12:03AM

21
#33 - Jung Yeon Park / @park_jungy

01/03/2021 at 08:40PM

21
#34 - A A A / @37fatos

01/09/2021 at 08:07PM

21
#35 - Roman Privalov / @RomanPrivalov

09/15/2021 at 08:22AM

21
#36 - ややお / @yayaoh

01/16/2022 at 07:06AM

21
#37 - Jean George / @JeanGeo20504212

08/01/2022 at 11:01PM

21
#38 - Janzen / @__Coos

10/06/2022 at 03:24PM

21
#39 - Luoyb / @Luoyb

10/27/2023 at 03:35AM

21
#40 - naka / @nak38223985244

12/16/2023 at 07:45AM

21
#41 - Aly Thobani / @alythobani

05/29/2024 at 11:34PM

21
#42 - Peppa Pig / @PeppaPigSg

07/17/2024 at 12:31AM

22
#43 - Jon Krause / @jkrause314

02/08/2020 at 03:57AM

22
#44 - Hyunjoon / @yi_hyunjoon

02/09/2020 at 02:22PM

22
#45 - "Smylers" / @Smylers2

02/09/2020 at 11:57PM

22
#46 - MegaPascal / @PascalMega

02/10/2020 at 11:01AM

22
#47 - John Braxler / @braxler

02/10/2020 at 03:00PM

22
#48 - Alexander Bessonov / @nonsleepr

02/13/2020 at 03:28PM

22
#49 - howanto / @ho_wan_

02/15/2020 at 09:35PM

22
#50 - Matthew / @Burfield12

02/17/2020 at 10:16PM

22
#51 - floyd / @floyd10086

02/22/2020 at 05:15PM

22
#52 - TheSemicolon / @the_semicolon_

02/25/2020 at 05:08PM

22
#53 - Tefe / @tefetic

03/02/2020 at 08:50PM

22
#54 - Paul Parker / @PaulDesmoParker

03/05/2020 at 04:59AM

22
#55 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 05:03PM

22
#56 - nicosierra / @nicosierra84

03/22/2020 at 08:05PM

22
#57 - zaid emad / @zaid_emad97

03/25/2020 at 11:38PM

22
#58 - Tinko Minko / @tandikula

04/10/2020 at 09:26PM

22
#59 - Stian Selnes / @stianse

04/26/2020 at 01:39PM

22
#60 - Sven Kõiv / @KoivSven

05/18/2020 at 08:43PM