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 139 remaining solutions by signing in and submitting your own entry
#140 Philip McHugh / @PhilipMcHugh_IE - Score: 44 - 12/07/19 @ 18:06
:s/{}<BS>}<BS>/(/:s/}<Left><Left><Left><Left><Del>&&<Del><Del><Del><BS><BS> | s:<BS>/}/)/<CR><Esc>:wq<CR>

0 comments


Created by: @rohitrango

140 active golfers, 251 entries

Leaderboard (lowest score wins):
10
#121 - fewfold / @fewfold

11/06/2019 at 03:52AM

10
#122 - HypoTech / @Obongoetco

12/07/2019 at 11:20PM

10
#123 - samuel norbury / @SnNorbury

12/30/2019 at 08:05PM

10
#124 - Jason Neylon / @jasonneylon

02/26/2020 at 07:30PM

10
#125 - countime / @countime1

03/13/2020 at 08:25AM

10
#126 - Vinay Sharma / @VinaySh63956554

08/14/2020 at 03:04PM

10
#127 - Rafal C. / @RafalC37709324

11/16/2020 at 09:37PM

10
#128 - 김범준 / @kmbmjn

02/17/2021 at 05:57AM

10
#129 - Michel Viktor / @tomkpz

09/12/2021 at 02:12PM

10
#130 - John Xu / @xzzhiao

05/04/2022 at 07:52PM

11
#131 - wwilkins / @wwilkins

07/24/2019 at 12:20AM

12
#132 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:52AM

12
#133 - Reid / @reid_kilgore

07/19/2019 at 08:37PM

12
#134 - Jeffrey Smith / @jeffrey_smith7

03/20/2022 at 01:41AM

13
#135 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:24PM

19
#136 - Vim Golfer / @VimGolfer6

07/17/2019 at 11:39AM

21
#137 - Florent Uguet / @FlorentUguet

07/19/2019 at 04:53PM

21
#138 - Bob Ren / @bobrenjc93

07/27/2019 at 09:24PM

30
#139 - JimmyGymglish / @JGymglish

12/27/2019 at 10:27AM

44
#140 - Philip McHugh / @PhilipMcHugh_IE

12/07/2019 at 06:06PM