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 @mario_olofo:

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

191 active golfers, 598 entries

Solutions by @mario_olofo:
14
#18 - Mario Olofo / @mario_olofo

01/19/2019 at 02:06AM

14
#>18 - Mario Olofo / @mario_olofo

01/19/2019 at 02:07AM

14
#>46 - Mario Olofo / @mario_olofo

10/22/2019 at 01:39AM

15
#>80 - Mario Olofo / @mario_olofo

01/19/2019 at 02:05AM

15
#>105 - Mario Olofo / @mario_olofo

10/22/2019 at 01:38AM

16
#>130 - Mario Olofo / @mario_olofo

01/19/2019 at 01:59AM

17
#>145 - Mario Olofo / @mario_olofo

01/19/2019 at 01:58AM