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 102 remaining solutions by signing in and submitting your own entry
#103 Florent Uguet / @FlorentUguet - Score: 21 - 07/19/19 @ 16:53
:%s/{/(/g|%s/}/)/g<CR>ZZ

0 comments


#104 Bob Ren / @bobrenjc93 - Score: 21 - 07/27/19 @ 21:24
:%s/{/(/g|%s/}/)/g<CR>ZZ

0 comments


Created by: @rohitrango

104 active golfers, 185 entries

Leaderboard (lowest score wins):
10
#61 - Benoit Benoit / @Benoit_Tgt

07/17/2019 at 07:31AM

10
#62 - Mauricio Ariza / @_hell_spawn

07/17/2019 at 01:27PM

10
#63 - Norbert / @mullno

07/17/2019 at 08:45PM

10
#64 - mocoma / @mocoma1

07/17/2019 at 11:37PM

10
#65 - Nick Yeow / @nickyeow

07/18/2019 at 03:52PM

10
#66 - bpseudopod / @bpseudopod

07/18/2019 at 05:45PM

10
#67 - Bradley M. Small / @BradleySmall

07/19/2019 at 01:07AM

10
#68 - Jacob Degeling / @JacobDegeling

07/19/2019 at 01:24AM

10
#69 - Reportados123 / @reportados123

07/19/2019 at 08:47PM

10
#70 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 03:41AM

10
#71 - Scott Schlesier / @sschlesier

07/21/2019 at 03:55AM

10
#72 - Miki Tebeka / @tebeka

07/22/2019 at 02:37AM

10
#73 - vana / @vana15129217

07/23/2019 at 07:51AM

10
#74 - Fred Leclerc / @fredleclerc

07/24/2019 at 03:25PM

10
#75 - Peter Meehan / @22A

07/27/2019 at 06:12PM

10
#76 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:00AM

10
#77 - Jonathan Browning / @yungjig90

07/30/2019 at 08:43PM

10
#78 - Pittson / @Pittson95

07/31/2019 at 06:44PM

10
#79 - Joel Elkins / @dice_tea

08/02/2019 at 03:21PM

10
#80 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:27PM

10
#81 - 那森 / @gewhersss

08/04/2019 at 01:57PM

10
#82 - Floyd Gantt / @fgantt

08/08/2019 at 09:21PM

10
#83 - André Reigoto / @AndreReigoto

08/11/2019 at 03:23AM

10
#84 - Hamza Shahid / @Zecuria

08/12/2019 at 01:50AM

10
#85 - Adrien / @beudbeud

08/13/2019 at 02:41PM

10
#86 - Jonathan Eidsness / @jonathaneidsnes

08/14/2019 at 09:03PM

10
#87 - Adam Hartz / @awareofnow

08/21/2019 at 03:42AM

10
#88 - José / @AngelGaldamez

08/26/2019 at 04:15AM

10
#89 - Lukas Schmidt / @TheRealGeStar

08/28/2019 at 11:39AM

10
#90 - Nicolas 👨‍💻🇨🇦 / @martinni39

09/04/2019 at 04:08PM