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

RUST match with enum for Coin

RUST match with enum for Coin rusty practice on vimgolf

Start file
enum Coin {
	Penny,
	Nickel,
	Dime,
	Quarter,
}
End file
enum Coin {
	Penny,
	Nickel,
	Dime,
	Quarter,
}

fn value_in_cents(coin: Coin) -> u32 {
	match coin {
		Coin::Penny => 1,
		Coin::Nickel => 5,
		Coin::Dime => 10,
		Coin::Quarter => 25,
	}
}

View Diff

6a7,15
> 
> fn value_in_cents(coin: Coin) -> u32 {
> 	match coin {
> 		Coin::Penny => 1,
> 		Coin::Nickel => 5,
> 		Coin::Dime => 10,
> 		Coin::Quarter => 25,
> 	}
> }

Solutions by @pykJzzzsmAzloZl:

Unlock 16 remaining solutions by signing in and submitting your own entry
Created by: @pykJzzzsmAzloZl

53 active golfers, 183 entries

Solutions by @pykJzzzsmAzloZl:
87
#6 - 김도현 / @pykJzzzsmAzloZl

12/23/2020 at 04:00AM

88
#>6 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 01:53PM

88
#>7 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 09:16PM

89
#>9 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 02:04PM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 09:46AM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 10:00AM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 01:00PM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 01:07PM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 01:15PM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/22/2020 at 07:18AM

91
#>11 - 김도현 / @pykJzzzsmAzloZl

12/22/2020 at 07:43AM

92
#>12 - 김도현 / @pykJzzzsmAzloZl

12/22/2020 at 07:58AM

93
#>14 - 김도현 / @pykJzzzsmAzloZl

12/22/2020 at 07:40AM

94
#>15 - 김도현 / @pykJzzzsmAzloZl

12/22/2020 at 07:28AM

98
#>19 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 11:10AM

108
#>29 - 김도현 / @pykJzzzsmAzloZl

12/21/2020 at 07:56AM