Vim Dojo challenge
You've just merged a branch and now you're staring at messy Git conflict blocks. Use macros and joins to collapse and clean them into resolved lines. Oh, and maybe delete that 3-year-old TODO while you're at it.
Start
<<<<<<< HEAD return user.name ======= return user.full_name >>>>>>> feature-branch <<<<<<< HEAD log('loading') log('retry') ======= log('loading') >>>>>>> feature-branch <<<<<<< HEAD config.timeout = 30 config.retries = 3 config.silent = true ======= config.timeout = 45 config.silent = false >>>>>>> feature-branch <<<<<<< HEAD render('ok') ======= render('success') render('complete') >>>>>>> feature-branch <<<<<<< HEAD next_user = user.id + 1 # HACK: blindly assumes the next user exists — cleanup scheduled Q1 2022 ======= alert('finished') >>>>>>> feature-branch
Goal
return user.full_name log('loading') config.timeout = 45 config.silent = false render('success') render('complete') alert('finished')
Members only
You gotta sign in to take on challenges. New ones drop every week — they're fun, and insightful.