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

91 active golfers, 360 entries

Leaderboard (lowest score wins):
18
#1 - Sandro / @ksandro

10/08/2024 at 10:03PM

18
#2 - Jean George / @JeanGeo20504212

10/08/2024 at 11:23PM

18
#3 - Peppa Pig / @PeppaPigSg

10/09/2024 at 01:10AM

18
#4 - ProggerX / @ProggerX

10/09/2024 at 06:38PM

18
#5 - ProGamerYeet / @ProGamerYeet

10/11/2024 at 03:50PM

18
#6 - Adi / @adi2004

10/14/2024 at 01:08PM

18
#7 - rasputins / @rasputins

10/14/2024 at 09:10PM

18
#8 - MatFriend / @MatFriend

10/15/2024 at 12:20AM

18
#9 - ShookerAndBeta / @Shooker2012

10/16/2024 at 12:27PM

18
#10 - Karim / @KarimIbrahim

10/16/2024 at 06:53PM

18
#11 - John Braxler / @braxler

10/17/2024 at 12:39PM

18
#12 - demouo / @demouo

10/18/2024 at 05:39PM

18
#13 - JMTed / @JMTed

10/21/2024 at 10:39AM

18
#14 - aaay-aaay / @aaay-aaay

10/25/2024 at 05:55PM

18
#15 - got_windy / @insomnight

10/28/2024 at 09:29AM

18
#16 - Fredrik Robertsen / @fredrikr79

10/29/2024 at 10:46AM

18
#17 - Melih Aktop / @mlhktp

11/01/2024 at 10:23PM

18
#18 - Hiroshi Yamamoto / @hyamamoto

11/06/2024 at 06:24AM

18
#19 - Alex Lewin / @_AlexLewin

11/18/2024 at 08:23PM

18
#20 - Danilo J. S. Bellini ๐ŸฅŠ๐Ÿ‡ง๐Ÿ‡ท / @danilobellini

11/23/2024 at 05:14AM

18
#21 - Staring / @StaringWhere

12/05/2024 at 03:00AM

18
#22 - MAIIIII / @TakunMaii

12/17/2024 at 05:28AM

18
#23 - Anton Savelyev / @PoiXP

01/02/2025 at 01:12PM

18
#24 - 0xf00ff00f / @0xf00ff00f

01/10/2025 at 03:10PM

18
#25 - Bas van den Wollenberg / @brw

01/10/2025 at 10:09PM

18
#26 - chujDK / @chujDK

03/04/2025 at 08:06AM

18
#27 - Abdelrahman Madkour / @a3madkour

04/03/2025 at 06:06AM

19
#28 - NotRexButCaesar / @NotRexButCaesar

10/10/2024 at 06:41AM

19
#29 - Peter Tillemans / @ptillemans

10/10/2024 at 09:56AM

19
#30 - Sander Meij / @SanderMeij

10/15/2024 at 02:39PM