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

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

210 active golfers, 672 entries

Solutions by @KaranVaity:
14
#72 - Karan / @KaranVaity

06/21/2025 at 02:45PM

15
#>129 - Karan / @KaranVaity

06/21/2025 at 02:42PM

15
#>129 - Karan / @KaranVaity

06/21/2025 at 02:43PM

16
#>161 - Karan / @KaranVaity

06/21/2025 at 02:40PM

16
#>161 - Karan / @KaranVaity

06/21/2025 at 02:41PM

16
#>161 - Karan / @KaranVaity

06/21/2025 at 02:42PM

17
#>167 - Karan / @KaranVaity

06/21/2025 at 02:40PM

20
#>192 - Karan / @KaranVaity

06/21/2025 at 02:39PM

24
#>207 - Karan / @KaranVaity

06/21/2025 at 02:39PM