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):
9
#31 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 10:24AM

9
#32 - Peter Demin / @peterdemin

07/29/2019 at 12:32PM

9
#33 - Adam Katz / @AdamKat01277576

07/31/2019 at 03:47PM

9
#34 - albalitz / @_albalitz

08/01/2019 at 07:54AM

9
#35 - Daniel Steinberg / @dstein64

08/02/2019 at 03:55AM

9
#36 - John Braxler / @braxler

08/02/2019 at 03:32PM

9
#37 - Ron Holt / @ron_holt

08/03/2019 at 02:50AM

9
#38 - りんご / @ringo9971

08/06/2019 at 08:39AM

9
#39 - sooqua / @sooqua

08/08/2019 at 10:02AM

9
#40 - Tencent / @JiezhiG

08/08/2019 at 10:07AM

9
#41 - Marc André Freiheit / @marc_freiheit

08/11/2019 at 02:51PM

9
#42 - Martin Delille / @martinodelilo

08/13/2019 at 03:52PM

9
#43 - Fabien C. / @vaga_io

08/13/2019 at 06:45PM

9
#44 - XiaoXiaoLui / @XiaoXiaoLui1

08/16/2019 at 02:35AM

9
#45 - Jake Treacher / @jaketreacher

08/16/2019 at 09:02AM

9
#46 - theBecwar / @thebecwar

08/18/2019 at 05:46PM

9
#47 - Chris Shorrock / @EbinFlow

08/20/2019 at 01:50PM

9
#48 - Marco Mannucci / @markomannux

08/27/2019 at 12:08PM

9
#49 - Iggy / @iggredible

09/12/2019 at 03:34AM

10
#50 - Benoit Benoit / @Benoit_Tgt

07/17/2019 at 07:31AM

10
#51 - Mauricio Ariza / @_hell_spawn

07/17/2019 at 01:27PM

10
#52 - Norbert / @mullno

07/17/2019 at 08:45PM

10
#53 - mocoma / @mocoma1

07/17/2019 at 11:37PM

10
#54 - Nick Yeow / @nickyeow

07/18/2019 at 03:52PM

10
#55 - bpseudopod / @bpseudopod

07/18/2019 at 05:45PM

10
#56 - Bradley M. Small / @BradleySmall

07/19/2019 at 01:07AM

10
#57 - Jacob Degeling / @JacobDegeling

07/19/2019 at 01:24AM

10
#58 - Reportados123 / @reportados123

07/19/2019 at 08:47PM

10
#59 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 03:41AM

10
#60 - Scott Schlesier / @sschlesier

07/21/2019 at 03:55AM