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

0 comments


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

0 comments


Created by: @rohitrango

105 active golfers, 186 entries

Leaderboard (lowest score wins):
9
#1 - Jon Krause / @jkrause314

07/17/2019 at 05:37AM

9
#2 - Malcolm Sharpe / @blueblimpms

07/17/2019 at 06:29AM

9
#3 - sztolabs / @sztolabs

07/17/2019 at 07:05AM

9
#4 - Saki Gw / @Sakigw

07/17/2019 at 07:45AM

9
#5 - Smylers / @Smylers2

07/17/2019 at 10:55AM

9
#6 - zh0ng / @zh00ng

07/17/2019 at 01:57PM

9
#7 - Kerson Hsiao / @KersonHsiao

07/17/2019 at 02:32PM

9
#8 - james_bunch / @james_bunch

07/17/2019 at 05:18PM

9
#9 - serent / @serent

07/17/2019 at 06:41PM

9
#10 - Tinko Minko / @tandikula

07/17/2019 at 09:05PM

9
#11 - Valacar / @valacar

07/18/2019 at 01:22AM

9
#12 - Rohit Kumar Jena / @rohitrango

07/18/2019 at 07:01AM

9
#13 - Neil Struthers / @struthersneil

07/18/2019 at 09:35AM

9
#14 - taka / @takaoutputblog

07/18/2019 at 03:13PM

9
#15 - James Raubenheimer / @jamzrob

07/18/2019 at 07:50PM

9
#16 - Drew Gottlieb / @Drew_Gottlieb

07/20/2019 at 05:51AM

9
#17 - Hxhxhrra / @hxhxhrra

07/20/2019 at 07:06PM

9
#18 - garry quested / @GQuested

07/21/2019 at 07:06AM

9
#19 - Calum Halpin / @calumhalpin

07/21/2019 at 07:10PM

9
#20 - Miłosz Łakomy / @foobar01123

07/22/2019 at 10:47AM

9
#21 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 09:50PM

9
#22 - grantopher orange / @grantopher

07/22/2019 at 11:37PM

9
#23 - Not real / @Notreal70353016

07/23/2019 at 04:29AM

9
#24 - Fan Zhang / @ffanzhang

07/23/2019 at 07:32AM

9
#25 - BaffaloP 🐃🎨 / @bbaffalopp

07/23/2019 at 09:14PM

9
#26 - Percelot / @percelot

07/24/2019 at 01:27PM

9
#27 - Zhenkai W. / @Zhenkai_W

07/26/2019 at 04:29PM

9
#28 - Markus / @ARealAnnoyance

07/26/2019 at 05:44PM

9
#29 - Chester Yap / @Chest_ErYap

07/27/2019 at 01:54PM

9
#30 - Petro Тrouq / @zulolosi

07/28/2019 at 09:31AM