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):
25
#121 - tomo@D2S / @e_2_718281828

02/21/2020 at 02:39AM

25
#122 - bluemartian / @bluemartianz59

03/23/2020 at 02:39PM

25
#123 - Nathan Hartman / @hnathan918

04/01/2020 at 10:46PM

25
#124 - Fabian Ahbeck / @FAhbeck

05/08/2020 at 11:29PM

25
#125 - Laurent Atlan / @laurentatlan1

05/11/2020 at 11:21AM

25
#126 - RaylanFox / @RaylanFox

06/18/2020 at 07:32PM

25
#127 - smlbrngr / @smlbrngr

07/13/2020 at 05:29PM

25
#128 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 06:00PM

25
#129 - Vildu / @Vildu3

09/30/2020 at 10:05AM

25
#130 - Ihor / @Ihor96382508

12/06/2020 at 10:34AM

25
#131 - Björn Struckmeier / @BjrnStruckmeie1

01/06/2021 at 01:47PM

25
#132 - grsh / @girish_i_am

05/28/2021 at 06:12PM

25
#133 - mevmev / @mevmev8

08/26/2021 at 03:40PM

25
#134 - x03n046 / @x03n046

06/03/2022 at 03:40AM

25
#135 - someone / @IKvacenok

06/14/2023 at 04:23PM

26
#136 - Linghao Du / @LinghaoDu

02/10/2020 at 03:40AM

26
#137 - Rebecca / @Rebecca62056794

02/17/2020 at 01:20AM

26
#138 - Under Blown / @iovuio

03/19/2020 at 01:52AM

26
#139 - Seve / @Seve_py

04/08/2020 at 01:32PM

26
#140 - Moatvald / @moatvald

04/12/2020 at 04:56PM

26
#141 - etherflow / @etherfl0w

05/04/2020 at 07:09AM

26
#142 - Miłosz Łakomy / @foobar01123

05/14/2020 at 04:54AM

26
#143 - khedd / @sinan_khedd

07/04/2020 at 02:08PM

26
#144 - GenericHardwareGamer / @GnrikHrdwrGamer

08/08/2020 at 12:57AM

26
#145 - Christ / @Christ46234422

09/08/2020 at 02:48AM

26
#146 - :wq / @write_quit_22

05/21/2021 at 07:52PM

26
#147 - POSIX / @po6ix

01/10/2022 at 01:26AM

26
#148 - Elliot Schemmel / @regulated

10/10/2024 at 09:47PM

27
#149 - Derek Schrock / @derekschrock

02/07/2020 at 04:13AM

27
#150 - Jackson T. Taylor / @JacksonTTaylor1

02/08/2020 at 09:44PM