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):
23
#61 - _3tHeR_ / @3ther-joyboy

11/12/2024 at 03:21PM

23
#62 - jonas-grobe / @jonas-grobe

03/27/2025 at 08:25PM

23
#63 - Trendt / @Trendt

05/08/2025 at 02:39PM

24
#64 - Gianfranco 💙 OpenZeppelin / @BazziBazzani

10/12/2024 at 08:39AM

24
#65 - Anton Strand / @AntonStrand

11/01/2024 at 04:34PM

24
#66 - thomasyang18 / @thomasyang18

05/17/2025 at 12:34PM

25
#67 - Ivelin Angelov / @post2web

10/09/2024 at 03:15AM

25
#68 - Anton de Regt / @antonderegt

10/22/2024 at 08:14PM

25
#69 - Austin / @austinlongmn

04/24/2025 at 01:25AM

27
#70 - Adam Stephen / @2_71828

10/09/2024 at 06:04AM

27
#71 - shooker2012 / @shooker2012

04/01/2025 at 09:22AM

30
#72 - Jan Scholz / @radikalliberal

10/18/2024 at 10:12AM

30
#73 - kshepherd / @kshepherd

10/19/2024 at 03:32PM

30
#74 - phaym / @phaym

05/11/2025 at 02:46AM

31
#75 - editor3D / @editor3D

11/16/2024 at 01:48AM

32
#76 - Ming / @x51ming

04/21/2025 at 11:58AM

35
#77 - Kamal Aghayev / @agayev169

03/04/2025 at 06:20PM

36
#78 - hiro1234omochi / @hiro1234omochi

05/10/2025 at 02:59PM

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

05/28/2025 at 10:31PM

39
#80 - SymenSoul / @SymenSoul

10/19/2024 at 06:06PM

39
#81 - Th0ught09 / @Th0ught09

06/02/2025 at 05:01PM

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

11/07/2024 at 05:00PM

41
#83 - Allenzxm15 / @Allenzxm15

10/27/2024 at 11:16AM

42
#84 - Batyr Asadullin / @Sengoku11

12/07/2024 at 03:10PM

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

10/16/2024 at 01:40PM

43
#86 - Ban / @Rheriel

10/19/2024 at 06:26PM

43
#87 - timonjamjam1 / @timonjamjam1

10/24/2024 at 10:33PM

50
#88 - Jq / @corsac_ua

10/23/2024 at 10:19PM

50
#89 - IroncladDev / @IroncladDev

10/26/2024 at 05:10PM

51
#90 - Sjur B. / @Apostrophel

05/24/2025 at 08:52PM