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

0 comments


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

0 comments


Created by: @rohitrango

90 active golfers, 155 entries

Leaderboard (lowest score wins):
10
#61 - Miki Tebeka / @tebeka

07/22/2019 at 02:37AM

10
#62 - vana / @vana15129217

07/23/2019 at 07:51AM

10
#63 - Fred Leclerc / @fredleclerc

07/24/2019 at 03:25PM

10
#64 - Peter Meehan / @22A

07/27/2019 at 06:12PM

10
#65 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:00AM

10
#66 - Jonathan Browning / @yungjig90

07/30/2019 at 08:43PM

10
#67 - Pittson / @Pittson95

07/31/2019 at 06:44PM

10
#68 - Joel Elkins / @dice_tea

08/02/2019 at 03:21PM

10
#69 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:27PM

10
#70 - 那森 / @gewhersss

08/04/2019 at 01:57PM

10
#71 - Floyd Gantt / @fgantt

08/08/2019 at 09:21PM

10
#72 - André Reigoto / @AndreReigoto

08/11/2019 at 03:23AM

10
#73 - Hamza Shahid / @Zecuria

08/12/2019 at 01:50AM

10
#74 - Adrien / @beudbeud

08/13/2019 at 02:41PM

10
#75 - Jonathan Eidsness / @jonathaneidsnes

08/14/2019 at 09:03PM

10
#76 - Adam Hartz / @awareofnow

08/21/2019 at 03:42AM

10
#77 - José / @AngelGaldamez

08/26/2019 at 04:15AM

10
#78 - Lukas Schmidt / @TheRealGeStar

08/28/2019 at 11:39AM

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

09/04/2019 at 04:08PM

10
#80 - Eric Banisadr / @EBanisadr

09/06/2019 at 04:19PM

10
#81 - Jakub Jindra / @jakub_jindra

09/08/2019 at 10:01AM

10
#82 - Ariel Miculas / @ArielMiculas

09/19/2019 at 12:43PM

10
#83 - Baine Wedlock / @BaineWedlock

09/20/2019 at 10:18AM

11
#84 - wwilkins / @wwilkins

07/24/2019 at 12:20AM

12
#85 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:52AM

12
#86 - Reid / @reid_kilgore

07/19/2019 at 08:37PM

13
#87 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:24PM

19
#88 - Vim Golfer / @VimGolfer6

07/17/2019 at 11:39AM

21
#89 - Florent Uguet / @FlorentUguet

07/19/2019 at 04:53PM

21
#90 - Bob Ren / @bobrenjc93

07/27/2019 at 09:24PM