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 5c26181de8c649000cfcac17

Change part of a function name in multiple occurrences

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

Start file
call_this_function()

_this_
  
  call_this_function()

 _this_

 call_this_function()
End file
call_that_function()

_this_
  
  call_that_function()

 _this_

 call_that_function()

View Diff

1c1
< call_this_function()
---
> call_that_function()
5c5
<   call_this_function()
---
>   call_that_function()
9c9
<  call_this_function()
---
>  call_that_function()

Solutions by @mcguire:

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

208 active golfers, 662 entries

Solutions by @mcguire:
15
#117 - TimMcGuire / @mcguire

03/04/2020 at 10:37PM

16
#>131 - TimMcGuire / @mcguire

12/31/2018 at 10:28PM

17
#>160 - TimMcGuire / @mcguire

12/31/2018 at 10:27PM

18
#>168 - TimMcGuire / @mcguire

12/31/2018 at 10:22PM

20
#>182 - TimMcGuire / @mcguire

12/31/2018 at 10:16PM

20
#>189 - TimMcGuire / @mcguire

03/04/2020 at 10:35PM

21
#>194 - TimMcGuire / @mcguire

03/04/2020 at 10:35PM

24
#>201 - TimMcGuire / @mcguire

12/31/2018 at 10:14PM

24
#>205 - TimMcGuire / @mcguire

03/04/2020 at 10:33PM

26
#>205 - TimMcGuire / @mcguire

12/31/2018 at 10:13PM

30
#>208 - TimMcGuire / @mcguire

12/31/2018 at 10:13PM

32
#>208 - TimMcGuire / @mcguire

03/04/2020 at 10:32PM