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 5e3ca51e6ea90a00096b3007

Quote modules (ver.2)

Complete golang import statement.

Start file
import
    log
    net/http

    graphql github.com/graph-gophers/graphql-go
    github.com/graph-gophers/graphql-go/relay
End file
import (
    "log"
    "net/http"

    graphql "github.com/graph-gophers/graphql-go"
    "github.com/graph-gophers/graphql-go/relay"
)

View Diff

1,3c1,3
< import
<     log
<     net/http
---
> import (
>     "log"
>     "net/http"
5,6c5,7
<     graphql github.com/graph-gophers/graphql-go
<     github.com/graph-gophers/graphql-go/relay
---
>     graphql "github.com/graph-gophers/graphql-go"
>     "github.com/graph-gophers/graphql-go/relay"
> )

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 61 remaining solutions by signing in and submitting your own entry
#62 Jean Arhancet / @JArhancet - Score: 115 - 02/18/21 @ 12:45
a<C-Right><Up><Right><Right> (<Down><Down><Down><Down><Down><Down><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><CR><BS><BS><BS><BS>)<Up><Up><Up><Up><Up><Right><Right><Right>"<Right><Right><Right>"<Down><Left><Left><Left><Left><Left>"<C-Right><C-Right><C-Right><Left><Up><C-Right><Right><C-Right><C-Right><Right><Right><Right><Right>"<Down><Down><Down><Up><Left><Left>"<C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><C-Right><Right><Right>"<Down>r<BS>'<C-Left><Right><BS>"<C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left><C-Left>"<Esc>:wq!<CR>

0 comments


Created by: @xiote2

62 active golfers, 253 entries

Leaderboard (lowest score wins):
35
#61 - Delon / @delonleonard

09/15/2021 at 12:30AM

115
#62 - Jean Arhancet / @JArhancet

02/18/2021 at 12:45PM