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 205 remaining solutions by signing in and submitting your own entry
#206 Nick Lucent / @NickLucent - Score: 26 - 02/22/19 @ 07:21
:%s/l_this_f/l_that_f/g<CR>ZZ
0 comments
#208 Patryk Jachowski / @programatryk - Score: 26 - 09/17/19 @ 10:01
/ca<CR>ctfcall_that_<Esc>n.n.:wq<CR>
0 comments