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

Change class fields from snake case to camel case

Change the class fields in this Scala class from snake case to camel case

Start 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]
)
End 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]
)

View Diff

5,6c5,6
<   first_name: String,
<   last_name: String,
---
>   firstName: String,
>   lastName: String,
9c9
<   phone_number: String,
---
>   phoneNumber: String,
13c13
<   postal_code: String,
---
>   postalCode: String,
17,19c17,19
<   is_active: Boolean,
<   registration_date: java.time.LocalDate,
<   last_login_date: java.time.LocalDateTime,
---
>   isActive: Boolean,
>   registrationDate: java.time.LocalDate,
>   lastLoginDate: 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 126 remaining solutions by signing in and submitting your own entry
#127 mike / @mikevux262 - Score: 263 - 04/25/25 @ 13:01
<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>:<50-53><50-53>:%s/\(_\)\(\w\)/\u\2/g<<Esc>[201~<CR>:<BS><50-53>:%s/\(_\)\(\w\)/\u\2/g<Esc>[201~u:<50-53>:%s/\(_\)\(\w\)/\u\2/g<Esc>[201~<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><BS><BS><Right><Insert><BS><Right><Left><Left><Left><.<BS><BS><BS><BS><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS><BS>:<BS>:<50-53>:%s/\(_\)\(\w\)/\u\2/g<Esc>[201~<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><BS><CR>:wq!<CR>

0 comments


Created by: @pacuna

127 active golfers, 336 entries

Leaderboard (lowest score wins):
14
#91 - Jesper Wallengren / @Qroop

06/25/2025 at 08:59AM

15
#92 - Philippe Carphin / @PhilippeCarphin

10/15/2024 at 01:35AM

15
#93 - Justin Fisher / @justinfisherr

11/01/2024 at 08:49PM

15
#94 - michaelgattas / @michaelgattas

05/05/2026 at 06:44PM

16
#95 - thedvd98 / @thedvd98

11/05/2024 at 09:18PM

16
#96 - Biswajit / @biswajitpatra

01/26/2025 at 03:15PM

16
#97 - Jarrod Folino / @JarrodFolinoFC

05/30/2025 at 01:59PM

17
#98 - natehershner / @natehershner

05/21/2025 at 03:30AM

18
#99 - anatolepain / @anatolepain

10/18/2024 at 01:09PM

18
#100 - Ivan Prikaznov / @Prikaz98

11/01/2024 at 03:52PM

19
#101 - Yen-Chun Chen / @YenChunChen4

10/10/2024 at 08:58PM

19
#102 - kramff / @kramff

10/18/2024 at 04:56PM

19
#103 - Matthew Cooper / @mkcmkc

06/21/2025 at 10:08AM

19
#104 - Adriano / @AdrianoAla

07/28/2025 at 10:55AM

19
#105 - Cyan Green / @cyan12green

04/21/2026 at 06:21AM

20
#106 - Neix20 / @Neix20

10/24/2024 at 08:31AM

20
#107 - IroncladDev / @IroncladDev

10/27/2024 at 12:34PM

20
#108 - Saurav / @epicblueprints

11/09/2024 at 09:44PM

20
#109 - dbrad311 / @dbrad311

02/07/2025 at 07:22PM

20
#110 - dp403aan / @dp403aan

02/21/2025 at 09:29AM

20
#111 - Will Powers / @wpowers42

08/03/2025 at 02:44PM

20
#112 - Beuzz / @Beuzz64

11/21/2025 at 11:09AM

20
#113 - UdonSari / @udonsari

06/21/2026 at 12:42AM

21
#114 - guyontristan / @guyontristan

10/20/2024 at 10:35AM

21
#115 - Brice Bischoff / @B-Bischoff

10/25/2024 at 10:23AM

21
#116 - editor3D / @editor3D

11/17/2024 at 08:40PM

21
#117 - Jon Garmilla / @jon-garmilla-dev

10/28/2026 at 05:15PM

23
#118 - Jean-Valery / @Jvaxx

03/27/2026 at 07:41PM

24
#119 - mariosar / @mariosar

10/15/2024 at 12:20AM

24
#120 - Encar Salazar / @nekomangini

05/15/2026 at 12:23AM