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
#151 - Sir_Kosciej / @SKosciej

02/08/2020 at 10:32PM

27
#152 - j30ng / @leej0116outloo1

02/09/2020 at 04:09PM

27
#153 - Joe Reddington / @joereddington

02/10/2020 at 11:08AM

27
#154 - Steffen / @Pions90

02/14/2020 at 06:02PM

27
#155 - みむら / @rnirnu

02/16/2020 at 03:26AM

27
#156 - Franckdemda / @Franckdemda

02/16/2020 at 12:22PM

27
#157 - Sina Khalili / @sinathagreat

02/17/2020 at 12:29PM

27
#158 - Oleg / @colega

02/17/2020 at 10:29PM

27
#159 - Noah / @NoahRosenzweig

02/18/2020 at 02:27PM

27
#160 - Dmitriy Olshevskiy / @olshevskiy_dv

02/24/2020 at 05:59PM

27
#161 - Mikael Brassman / @spoike

03/03/2020 at 03:56PM

27
#162 - Victor Chen / @VictorC89422342

03/04/2020 at 08:45PM

27
#163 - Andrei Popescu / @AndreiTheory

03/07/2020 at 12:34AM

27
#164 - Bitt Faulk / @bittfaulk

03/13/2020 at 07:49PM

27
#165 - Rune Warhuus / @DinkDonkNorway

03/27/2020 at 04:06PM

27
#166 - fedja golf / @fedjagolf

04/13/2020 at 01:15AM

27
#167 - Toby de Havilland / @tobydeh

04/19/2020 at 12:32PM

27
#168 - dule2607 / @dule26071

05/01/2020 at 02:47PM

27
#169 - Robin Abrahamsson / @rqAbrahamsson

05/06/2020 at 07:12PM

27
#170 - Manish Baghel / @ManishBaghelz

05/14/2020 at 10:31AM

27
#171 - Kevin Keefe / @KevinKeefe5

05/15/2020 at 05:57PM

27
#172 - mocihan / @mocihan

06/29/2020 at 04:31PM

27
#173 - Brennan Barker / @BrennanJBarker

07/06/2020 at 04:10PM

27
#174 - artcha / @artushkevichs

07/08/2020 at 05:14PM

27
#175 - vito / @vito49999722

08/01/2020 at 06:01AM

27
#176 - vim-golf-requirement / @VRequirement

10/15/2020 at 03:52PM

27
#177 - Ifeoluwa Lawal / @IfeLawl

10/15/2020 at 04:02PM

27
#178 - James / @Dronak

11/30/2022 at 05:23PM

27
#179 - 7733865@qq.com / @tjxwg

08/09/2023 at 02:57AM

27
#180 - pajamaman7 aka tommyBuckets / @pajamaman7

02/29/2024 at 08:01PM