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):
23
#91 - Greg Jebb / @jebbster

05/11/2020 at 12:35PM

23
#92 - Bradley Pankow / @BTPankow

08/06/2020 at 12:33AM

23
#93 - Matthias / @Matthia78044730

09/01/2020 at 03:22PM

23
#94 - AAbraxas / @AAbraxas1

11/03/2020 at 09:17PM

23
#95 - Ray Dennis / @raysden

12/23/2020 at 08:55PM

23
#96 - Andreas Siegrist / @andreaszwei

01/21/2021 at 09:51PM

23
#97 - dorianm / @dorianm

05/08/2022 at 02:21AM

23
#98 - tk555 / @tk55513

05/05/2024 at 01:59PM

23
#99 - Demian Martinez / @demianuco

01/13/2025 at 12:23PM

24
#100 - garry quested / @GQuested

02/07/2020 at 09:39AM

24
#101 - Sander Vanhove / @SanderVhove

02/08/2020 at 09:13PM

24
#102 - KingYames / @JamesZeHunter

02/17/2020 at 02:19AM

24
#103 - Sean Dewar / @seandewar

03/12/2020 at 06:50PM

24
#104 - Toby Hawkins / @Toby_Hawkins

03/14/2020 at 04:18PM

24
#105 - Lop / @Numeross_

04/02/2020 at 10:30PM

24
#106 - pady. 🇪🇺 @hundertzwoelf@sueden.social / @hundertzwoelf_

05/26/2020 at 02:26PM

24
#107 - RockerZZY / @rocker_zzy

05/28/2020 at 08:42AM

24
#108 - JLObject / @powful_panda

07/02/2020 at 02:04PM

24
#109 - Martin Bielik / @mabielik

08/10/2020 at 04:59PM

24
#110 - Blake Tereau / @BlakeTereau

08/26/2020 at 11:12PM

24
#111 - mstronam / @mstronam

10/04/2020 at 05:19PM

24
#112 - Demian Martinez / @demianuco

11/02/2020 at 09:18AM

24
#113 - Alex / @AlexanderHeatl2

07/06/2022 at 09:23PM

25
#114 - Ollin Boer Bohan / @madebyollin

02/06/2020 at 11:03PM

25
#115 - Arijus / @argshook

02/07/2020 at 02:48PM

25
#116 - Clemens Köhler / @clemens_khler

02/07/2020 at 05:05PM

25
#117 - Niko Kivelä / @Tovrleaf

02/09/2020 at 04:41PM

25
#118 - Jason Neylon / @jasonneylon

02/10/2020 at 08:27PM

25
#119 - Matt / @Matt85092908

02/12/2020 at 10:55PM

25
#120 - Emil / @emilklindt

02/16/2020 at 09:14PM