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

143 active golfers, 628 entries

Leaderboard (lowest score wins):
25
#91 - Austin / @austinlongmn

04/24/2025 at 01:25AM

25
#92 - Doxly / @Doxly

01/13/2026 at 09:58AM

25
#93 - qoober1 / @qoober1

04/01/2026 at 01:15PM

25
#94 - Andrew / @fr0streaper

05/11/2026 at 01:43PM

26
#95 - JoshHughes156 / @JoshHughes156

08/21/2025 at 11:19PM

27
#96 - Adam Stephen / @2_71828

10/09/2024 at 06:04AM

27
#97 - shooker2012 / @shooker2012

04/01/2025 at 09:22AM

29
#98 - Shreyas Ravi / @shreyasravi320

02/14/2026 at 08:09AM

30
#99 - Jan Scholz / @radikalliberal

10/18/2024 at 10:12AM

30
#100 - kshepherd / @kshepherd

10/19/2024 at 03:32PM

30
#101 - cyan12green / @cyan12green

04/21/2026 at 07:31AM

31
#102 - editor3D / @editor3D

11/16/2024 at 01:48AM

32
#103 - Ming / @x51ming

04/21/2025 at 11:58AM

35
#104 - Kamal Aghayev / @agayev169

03/04/2025 at 06:20PM

36
#105 - hiro1234omochi / @hiro1234omochi

05/10/2025 at 02:59PM

36
#106 - Daniel Jahn (dahn) / @DahnJ

05/28/2025 at 10:31PM

36
#107 - Encar Salazar / @nekomangini

04/24/2026 at 01:15PM

39
#108 - SymenSoul / @SymenSoul

10/19/2024 at 06:06PM

39
#109 - Th0ught09 / @Th0ught09

06/02/2025 at 05:01PM

40
#110 - Лихачев Арсений / @lizaruche

11/07/2024 at 05:00PM

40
#111 - Matthew Cooper / @mkcmkc

06/21/2025 at 09:58AM

41
#112 - Allenzxm15 / @Allenzxm15

10/27/2024 at 11:16AM

42
#113 - Batyr Asadullin / @Sengoku11

12/07/2024 at 03:10PM

43
#114 - 5S-PETER-PALFY / @5S-PETER-PALFY

10/16/2024 at 01:40PM

43
#115 - Ban / @Rheriel

10/19/2024 at 06:26PM

43
#116 - timonjamjam1 / @timonjamjam1

10/24/2024 at 10:33PM

45
#117 - EthanMcGuire / @EthanMcGuire

01/04/2026 at 03:25PM

49
#118 - dbil25 / @dbil25

10/23/2025 at 03:56PM

50
#119 - Jq / @corsac_ua

10/23/2024 at 10:19PM

50
#120 - IroncladDev / @IroncladDev

10/26/2024 at 05:10PM