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 by @Dheeraj-Murthy:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @pacuna

56 active golfers, 150 entries

Solutions by @Dheeraj-Murthy:
13
#31 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:46AM

14
#>38 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:45AM

19
#>46 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:44AM

20
#>49 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:42AM

21
#>51 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:38AM

26
#>53 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:35AM

30
#>54 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:35AM

32
#>54 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:34AM

35
#>54 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:29AM

44
#>55 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:27AM

48
#>55 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:31AM

73
#>56 - M S Dheeraj Murthy / @Dheeraj-Murthy

11/14/2024 at 06:25AM