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 9v0067056336000000000514

Change class fields from camel case to snake case

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

Start file
case class User(
  id
: Long,
  username
: String,
  email
: String,
  firstName
: String,
  lastName
: String,
  age
: Int,
  gender
: String,
  phoneNumber
: String,
  address
: String,
  city
: String,
  country
: String,
  postalCode
: String,
  occupation
: String,
  company
: String,
  salary
: Double,
  isActive
: Boolean,
  registrationDate
: java.time.LocalDate,
  lastLoginDate
: java.time.LocalDateTime,
  preferences
: Map[String, String],
  roles
: List[String]
)
End file
case class User(
  id
: Long,
  username
: String,
  email
: String,
  first_name
: String,
  last_name
: String,
  age
: Int,
  gender
: String,
  phone_number
: String,
  address
: String,
  city
: String,
  country
: String,
  postal_code
: String,
  occupation
: String,
  company
: String,
  salary
: Double,
  is_active
: Boolean,
  registration_date
: java.time.LocalDate,
  last_login_date
: java.time.LocalDateTime,
  preferences
: Map[String, String],
  roles
: List[String]
)

View Diff

5,6c5,6
<   firstName: String,
<   lastName: String,
---
>   first_name: String,
>   last_name: String,
9c9
<   phoneNumber: String,
---
>   phone_number: String,
13c13
<   postalCode: String,
---
>   postal_code: String,
17,19c17,19
<   isActive: Boolean,
<   registrationDate: java.time.LocalDate,
<   lastLoginDate: java.time.LocalDateTime,
---
>   is_active: Boolean,
>   registration_date: java.time.LocalDate,
>   last_login_date: java.time.LocalDateTime,

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 107 remaining solutions by signing in and submitting your own entry
#108 Alex Li / @1liale - Score: 395 - 10/21/24 @ 19:47
<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>/fl<BS><CR>lllli<Right>-<BS>_<Right><BS>n<Down><Left><Left><Left>_<Right><BS>n<Down><Down><Down><Left>_<Right><BS>n<Down><Down><Down><Down><Left>_<Right><BS>c<Down><Down><Down><Down><Left><Left><Left><Left><Left><Left>_<Right><BS>a<Down><Right><Right><Right><Right><Right><Right><Right><Right>_<Right><BS>d<Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>_<Right><BS>l<Right><Right><Right><Right>_<Right><BS>d<Down><Left><Left><Left><Esc><Down><Down><Down>:wq<CR>

0 comments


Created by: @pacuna

108 active golfers, 448 entries

Leaderboard (lowest score wins):
18
#31 - Leon Kacowicz / @leonkacowicz

05/22/2025 at 12:15PM

18
#32 - winter-loo / @winter-loo

05/28/2025 at 06:20PM

18
#33 - Katie Gardner / @KatieLG

06/01/2025 at 10:16PM

19
#34 - NotRexButCaesar / @NotRexButCaesar

10/10/2024 at 06:41AM

19
#35 - Peter Tillemans / @ptillemans

10/10/2024 at 09:56AM

19
#36 - Sander Meij / @SanderMeij

10/15/2024 at 02:39PM

19
#37 - thedvd98 / @thedvd98

11/17/2024 at 09:20PM

19
#38 - 中矢 悠貴 / @Glacialte

12/13/2024 at 05:49PM

19
#39 - Eng. José Esteves / @JGEsteves89

02/15/2025 at 06:39PM

20
#40 - Yen-Chun Chen / @YenChunChen4

10/10/2024 at 09:29PM

20
#41 - slash-7 / @slash-7

10/11/2024 at 07:49AM

20
#42 - CodePirateLuffy / @CodePirateLuffy

10/22/2024 at 07:40AM

20
#43 - Eirik Rognø / @EirikRogno

04/01/2025 at 02:03PM

21
#44 - Sandy1796ii / @Sandy1796ii

10/10/2024 at 05:26AM

21
#45 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 03:51PM

21
#46 - Heitor Dantas / @heitordnts

12/22/2024 at 03:24PM

21
#47 - Josh / @joshfelm

05/02/2025 at 09:36AM

21
#48 - Gibson Starkweather / @boaf

05/30/2025 at 04:29PM

22
#49 - Elisedlund / @Elisedlund

10/13/2024 at 04:29PM

22
#50 - Goran Petrovity / @5S-Goran

10/16/2024 at 10:31AM

22
#51 - Nithin S Varrier / @0x006E

10/18/2024 at 08:24AM

22
#52 - guyontristan / @guyontristan

10/20/2024 at 10:27AM

22
#53 - dlum20 / @dlum20

10/24/2024 at 03:16AM

22
#54 - Berel94 / @Berel94

10/24/2024 at 08:47PM

22
#55 - Highlander Paiva / @hvpaiva

10/24/2024 at 10:16PM

22
#56 - Frédéric Heulin / @talineo

12/28/2024 at 09:06PM

22
#57 - Magnus Wahlstrand / @magnuswahlstrand

01/12/2025 at 08:23AM

22
#58 - Herman Stavelin / @HerSta

02/03/2025 at 01:13PM

23
#59 - Pablo Acuna / @pacuna

10/08/2024 at 05:14PM

23
#60 - Håkon Anders Strømsodd / @haakon8855

10/17/2024 at 06:50AM