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

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

211 active golfers, 679 entries

Solutions by @nickandbro:
14
#71 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

15
#>129 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

16
#>161 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

17
#>167 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

18
#>184 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

19
#>185 - nickGPT / @nickandbro

08/25/2024 at 02:52AM

20
#>193 - nickGPT / @nickandbro

08/25/2024 at 02:51AM

21
#>197 - nickGPT / @nickandbro

08/25/2024 at 02:51AM

22
#>204 - nickGPT / @nickandbro

08/25/2024 at 02:51AM

24
#>208 - nickGPT / @nickandbro

08/25/2024 at 02:51AM

26
#>211 - nickGPT / @nickandbro

08/25/2024 at 02:51AM