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 5d2eb22d2fdc4f0009d79444

change parenthesis

change the pair of braces into a pair of parentheses

Start file
this is some text {inside a pair of braces} and you need to change it into (brackets)
End file
this is some text (inside a pair of braces) and you need to change it into (brackets)

View Diff

1c1
< this is some text {inside a pair of braces} and you need to change it into (brackets)
---
> this is some text (inside a pair of braces) and you need to change it into (brackets)

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 160 remaining solutions by signing in and submitting your own entry
#161 Philip McHugh / @PhilipMcHugh_IE - Score: 44 - 12/07/19 @ 18:06
:s/{}<BS>}<BS>/(/:s/}<Left><Left><Left><Left><Del>&&<Del><Del><Del><BS><BS> | s:<BS>/}/)/<CR><Esc>:wq<CR>

0 comments


Created by: @rohitrango

161 active golfers, 296 entries

Leaderboard (lowest score wins):
9
#61 - Roger Stoltz / @rogsto1

11/15/2019 at 10:02PM

9
#62 - galanaki / @galanaki

11/22/2019 at 09:09AM

9
#63 - pysnow530 / @pysnow530

11/25/2019 at 05:34AM

9
#64 - John Grove / @grovejt

12/15/2019 at 02:42PM

9
#65 - vicver09 / @vicver091

12/18/2019 at 06:50PM

9
#66 - Rafael Lin / @RafaelLin0310

12/20/2019 at 04:08PM

9
#67 - skamgolf / @skamgolf

12/21/2019 at 07:44PM

9
#68 - James Casey / @hanavi

12/21/2019 at 09:34PM

9
#69 - BESSENG A IREH Guy / @guybesseng

12/23/2019 at 07:21PM

9
#70 - Delon / @delonleonard

01/20/2020 at 01:20PM

9
#71 - Michael Meixner / @meixner62

01/23/2020 at 03:02PM

9
#72 - Nick Lee / @TooManyNickLees

04/05/2020 at 10:06PM

9
#73 - Jason / @roosjason

05/31/2020 at 11:13PM

9
#74 - RockerZZY / @rocker_zzy

06/09/2020 at 11:05PM

9
#75 - hepebexè / @hepebexe

01/31/2021 at 08:39PM

9
#76 - A A A / @37fatos

02/01/2021 at 02:01AM

9
#77 - Jung Yeon Park / @park_jungy

02/06/2021 at 10:48PM

9
#78 - Fake Konto / @F4k3K0n70

02/14/2021 at 05:54PM

9
#79 - pikjes / @pikjes2

03/21/2021 at 06:59PM

9
#80 - Tuure / @tuure_p

03/22/2021 at 02:31AM

9
#81 - Roman Privalov / @RomanPrivalov

10/01/2021 at 06:52AM

9
#82 - Humbaba / @humbabu

01/09/2022 at 07:30PM

9
#83 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 01:48AM

9
#84 - dorianm / @dorianm

05/09/2022 at 01:24AM

9
#85 - Alex / @AlexanderHeatl2

08/28/2022 at 07:31PM

9
#86 - Brandon / @Brandon10678836

09/01/2022 at 12:03AM

9
#87 - Ssu-Yuan Cheng / @szuyuan

09/09/2022 at 12:50PM

9
#88 - Janzen / @__Coos

10/04/2022 at 12:43PM

9
#89 - someone / @IKvacenok

06/15/2023 at 07:34PM

9
#90 - makita0x01 / @Makita81234049

07/13/2023 at 08:26AM