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):
10
#91 - Nicolas 👨‍💻🇨🇦 / @martinni39

09/04/2019 at 04:08PM

10
#92 - Eric Banisadr / @EBanisadr

09/06/2019 at 04:19PM

10
#93 - Jakub Jindra / @jakub_jindra

09/08/2019 at 10:01AM

10
#94 - Ariel Miculas / @ArielMiculas

09/19/2019 at 12:43PM

10
#95 - Baine Wedlock / @BaineWedlock

09/20/2019 at 10:18AM

10
#96 - ErQ325 / @EQ325

10/13/2019 at 11:05AM

10
#97 - Mario Olofo / @mario_olofo

10/21/2019 at 08:50PM

10
#98 - fewfold / @fewfold

11/06/2019 at 03:52AM

11
#99 - wwilkins / @wwilkins

07/24/2019 at 12:20AM

12
#100 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:52AM

12
#101 - Reid / @reid_kilgore

07/19/2019 at 08:37PM

13
#102 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:24PM

19
#103 - Vim Golfer / @VimGolfer6

07/17/2019 at 11:39AM

21
#104 - Florent Uguet / @FlorentUguet

07/19/2019 at 04:53PM

21
#105 - Bob Ren / @bobrenjc93

07/27/2019 at 09:24PM