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

Add text at some column

Complete golang struct statement.

Start file
// Product contains information about one product
type Product struct
    ID  int64   id
    Name    string  name
    Info    string  info,omitempty
    Price   float64 price
End file
// Product contains information about one product
type Product struct {
    ID  int64   `json:"id"`
    Name    string  `json:"name"`
    Info    string  `json:"info,omitempty"`
    Price   float64 `json:"price"`
}

View Diff

2,6c2,7
< type Product struct
<     ID  int64   id
<     Name    string  name
<     Info    string  info,omitempty
<     Price   float64 price
---
> type Product struct {
>     ID  int64   `json:"id"`
>     Name    string  `json:"name"`
>     Info    string  `json:"info,omitempty"`
>     Price   float64 `json:"price"`
> }

Solutions by @russellzhaomao:

Unlock 7 remaining solutions by signing in and submitting your own entry
Created by: @xiote2

60 active golfers, 154 entries

Solutions by @russellzhaomao:
31
#18 - russellzhaomao / @russellzhaomao

05/25/2022 at 12:04AM

32
#>35 - russellzhaomao / @russellzhaomao

05/25/2022 at 12:02AM

32
#>35 - russellzhaomao / @russellzhaomao

05/25/2022 at 12:11AM

33
#>43 - russellzhaomao / @russellzhaomao

05/25/2022 at 12:01AM

39
#>57 - russellzhaomao / @russellzhaomao

05/24/2022 at 11:16PM

41
#>58 - russellzhaomao / @russellzhaomao

05/24/2022 at 11:08PM

59
#>60 - russellzhaomao / @russellzhaomao

05/24/2022 at 01:34PM