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 160 remaining solutions by signing in and submitting your own entry
#161 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

161 active golfers, 296 entries

Leaderboard (lowest score wins):
9
#91 - moh ayaya / @AyayaMoh

09/05/2023 at 06:06PM

9
#92 - Luoyb / @Luoyb

10/28/2023 at 07:50AM

9
#93 - Peppa Pig / @PeppaPigSg

05/19/2024 at 05:11AM

9
#94 - Paul McDowell / @etothepi16

05/24/2024 at 04:55PM

9
#95 - Aly Thobani / @alythobani

05/31/2024 at 12:06AM

9
#96 - nickGPT / @nickandbro

08/24/2024 at 02:55PM

10
#97 - Benoit Benoit / @Benoit_Tgt

07/17/2019 at 07:31AM

10
#98 - Mauricio Ariza / @_hell_spawn

07/17/2019 at 01:27PM

10
#99 - Norbert / @mullno

07/17/2019 at 08:45PM

10
#100 - mocoma / @mocoma1

07/17/2019 at 11:37PM

10
#101 - Nick Yeow / @nickyeow

07/18/2019 at 03:52PM

10
#102 - bpseudopod / @bpseudopod

07/18/2019 at 05:45PM

10
#103 - Bradley M. Small / @BradleySmall

07/19/2019 at 01:07AM

10
#104 - Jacob Degeling / @JacobDegeling

07/19/2019 at 01:24AM

10
#105 - Reportados123 / @reportados123

07/19/2019 at 08:47PM

10
#106 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 03:41AM

10
#107 - Scott Schlesier / @sschlesier

07/21/2019 at 03:55AM

10
#108 - Miki Tebeka / @tebeka

07/22/2019 at 02:37AM

10
#109 - vana / @vana15129217

07/23/2019 at 07:51AM

10
#110 - Fred Leclerc / @fredleclerc

07/24/2019 at 03:25PM

10
#111 - Peter Meehan / @22A

07/27/2019 at 06:12PM

10
#112 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:00AM

10
#113 - Jonathan Browning / @yungjig90

07/30/2019 at 08:43PM

10
#114 - Pittson / @Pittson95

07/31/2019 at 06:44PM

10
#115 - Joel Elkins / @dice_tea

08/02/2019 at 03:21PM

10
#116 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 03:27PM

10
#117 - 那森 / @gewhersss

08/04/2019 at 01:57PM

10
#118 - Floyd Gantt / @fgantt

08/08/2019 at 09:21PM

10
#119 - André Reigoto / @AndreReigoto

08/11/2019 at 03:23AM

10
#120 - Hamza Shahid / @Zecuria

08/12/2019 at 01:50AM