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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 114 remaining solutions by signing in and submitting your own entry
#115 Nick Lucent / @NickLucent - Score: 26 - 02/22/19 @ 07:21
:%s/l_this_f/l_that_f/g<CR>ZZ

0 comments


#116 Phoon / @justflashhim - Score: 26 - 05/10/19 @ 16:27
:%s/l_this_f/l_that_f/g<CR>ZZ

0 comments


Created by: @xiongyuwu

116 active golfers, 351 entries

Leaderboard (lowest score wins):
18
#91 - Bruno / @Av31r3ns3

12/29/2018 at 10:43PM

18
#92 - Costel Radulescu / @_wizard_

01/01/2019 at 02:58PM

18
#93 - Mauricio Ariza / @_hell_spawn

01/02/2019 at 06:54PM

18
#94 - Daniel Wolf / @DanielW06054976

01/03/2019 at 10:25AM

18
#95 - John Smith / @JohnSmi14480159

01/09/2019 at 07:24AM

18
#96 - Martins / @Martins88554972

01/13/2019 at 08:12PM

18
#97 - Blah Blah / @BlahBla08410389

01/20/2019 at 04:51PM

18
#98 - 강현 / @Applesquiz

01/22/2019 at 11:04AM

18
#99 - Ashley Harvey / @ashleyharvey87

03/08/2019 at 03:07AM

20
#100 - rg thomas / @rgt47

01/12/2019 at 12:42AM

20
#101 - lofoneax / @lofoneax

01/23/2019 at 04:10AM

20
#102 - OldBoy / @geirola

03/12/2019 at 12:09PM

21
#103 - Zeming Lin / @ebetica

01/17/2019 at 07:45PM

21
#104 - MGJoe93 / @mgjoe93

03/06/2019 at 05:53PM

21
#105 - zenwalker / @zenwalker93

03/10/2019 at 12:48PM

22
#106 - Scott Voyles / @zeitchef

12/28/2018 at 03:22PM

22
#107 - nikos efthias / @nikosef8ias

12/30/2018 at 12:34AM

22
#108 - Luis Rodriguez / @luisthecoder

01/03/2019 at 02:58AM

22
#109 - Brome / @Brome20887421

01/04/2019 at 05:57PM

22
#110 - XenoRiS / @XenoRiS1

02/16/2019 at 04:38PM

24
#111 - adir ohayon / @AdirKip

01/08/2019 at 12:23PM

24
#112 - Maarten Staa / @SeriousSpoon

02/27/2019 at 02:21PM

24
#113 - The Joe / @computerjoe708

03/18/2019 at 01:47AM

24
#114 - Vincent Carrier / @VincntCarrier

03/23/2019 at 03:19AM

26
#115 - Nick Lucent / @NickLucent

02/22/2019 at 07:21AM

26
#116 - Phoon / @justflashhim

05/10/2019 at 04:27PM