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 133 remaining solutions by signing in and submitting your own entry
#134 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

134 active golfers, 586 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

18
#34 - Hessesian / @Hessesian

06/19/2025 at 10:03AM

18
#35 - petr-kx / @petr-kx

08/20/2025 at 06:41PM

18
#36 - danieltanto / @danieltanto

09/02/2025 at 11:08PM

18
#37 - Youri Seichter / @medizinmensch

11/20/2025 at 12:16PM

18
#38 - Aly Thobani / @alythobani

11/24/2025 at 04:46AM

18
#39 - Gavin / @GavinKoeng

11/25/2025 at 05:55PM

18
#40 - Konrad Guzek / @kguzek

12/24/2025 at 10:26PM

18
#41 - Quadrate / @quadratech188

01/17/2026 at 03:01PM

18
#42 - clejui / @clejui

03/02/2026 at 12:23PM

18
#43 - maksim-pinguin / @maksim-pinguin

03/04/2026 at 04:52PM

18
#44 - Johann Aschenloher / @HansAschenloher

03/08/2026 at 09:41AM

18
#45 - curbe454 / @curbe454

03/10/2026 at 12:44PM

19
#46 - NotRexButCaesar / @NotRexButCaesar

10/10/2024 at 06:41AM

19
#47 - Peter Tillemans / @ptillemans

10/10/2024 at 09:56AM

19
#48 - Sander Meij / @SanderMeij

10/15/2024 at 02:39PM

19
#49 - thedvd98 / @thedvd98

11/17/2024 at 09:20PM

19
#50 - 中矢 悠貴 / @Glacialte

12/13/2024 at 05:49PM

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

02/15/2025 at 06:39PM

19
#52 - sealldev / @sealldeveloper

09/02/2025 at 09:03AM

19
#53 - yaskur0 / @yaskur0

11/10/2025 at 01:55AM

20
#54 - Yen-Chun Chen / @YenChunChen4

10/10/2024 at 09:29PM

20
#55 - slash-7 / @slash-7

10/11/2024 at 07:49AM

20
#56 - CodePirateLuffy / @CodePirateLuffy

10/22/2024 at 07:40AM

20
#57 - Eirik Rognø / @EirikRogno

04/01/2025 at 02:03PM

21
#58 - Sandy1796ii / @Sandy1796ii

10/10/2024 at 05:26AM

21
#59 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 03:51PM

21
#60 - Heitor Dantas / @heitordnts

12/22/2024 at 03:24PM