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
#1 - dryaurtis / @dryaurtis

02/08/2020 at 09:11PM

21
#2 - Xor547 / @Xor547

02/09/2020 at 04:16PM

21
#3 - Saki Gw / @Sakigw

02/10/2020 at 01:48PM

21
#4 - jrddp / @jrddp0

02/12/2020 at 01:29AM

21
#5 - Andre / @5starsmug

02/17/2020 at 01:49AM

21
#6 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 09:43AM

21
#7 - Ard / @kokojarjar

02/18/2020 at 10:26AM

21
#8 - yhetsugiHMC / @yhetsugi

02/21/2020 at 01:22AM

21
#9 - countime / @countime1

03/04/2020 at 08:24AM

21
#10 - Wouter Horlings / @Achilleshiel

03/12/2020 at 11:21AM

21
#11 - Viktor Styrud / @ViktorStyrud

03/12/2020 at 04:00PM

21
#12 - せいほう / @FICSQF

03/16/2020 at 02:57AM

21
#13 - Yan Xue / @_yxue

03/22/2020 at 09:03PM

21
#14 - Quark / @PuzzleQuark

03/23/2020 at 10:43PM

21
#15 - Rodrigo V. Lopes / @rodvlopes

03/24/2020 at 06:48PM

21
#16 - mury liang / @muryliang

04/04/2020 at 08:41AM

21
#17 - edvrds / @edvrds

04/12/2020 at 04:39PM

21
#18 - John Sumner / @rjsumner

04/28/2020 at 12:09PM

21
#19 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 08:17PM

21
#20 - Bspammer / @Bspammer

05/07/2020 at 12:55AM

21
#21 - Jonáš Šerých / @serycjon

05/15/2020 at 09:38PM

21
#22 - haipeng li / @HaipengLie

05/18/2020 at 01:20AM

21
#23 - Kai.Li / @KaiLi19

05/26/2020 at 05:09AM

21
#24 - Rene Ribaud / @Uggla_

06/07/2020 at 09:08PM

21
#25 - 大矢元海 / @008Genkai

07/10/2020 at 09:58PM

21
#26 - PK / @pkeugine

07/15/2020 at 02:37PM

21
#27 - fenn.stefan@gmail.com / @FennStefan

08/25/2020 at 06:10PM

21
#28 - akouryy / @akouryy1

09/15/2020 at 08:12AM

21
#29 - lamtt77 / @lamtt77

10/09/2020 at 10:35AM

21
#30 - David Kutschke / @D4KU_

11/16/2020 at 08:21PM