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):
11
#151 - wwilkins / @wwilkins

07/24/2019 at 12:20AM

12
#152 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:52AM

12
#153 - Reid / @reid_kilgore

07/19/2019 at 08:37PM

12
#154 - Jeffrey Smith / @jeffrey_smith7

03/20/2022 at 01:41AM

12
#155 - jackson / @bearahuman

04/18/2023 at 03:35PM

13
#156 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:24PM

19
#157 - Vim Golfer / @VimGolfer6

07/17/2019 at 11:39AM

21
#158 - Florent Uguet / @FlorentUguet

07/19/2019 at 04:53PM

21
#159 - Bob Ren / @bobrenjc93

07/27/2019 at 09:24PM

30
#160 - JimmyGymglish / @JGymglish

12/27/2019 at 10:27AM

44
#161 - Philip McHugh / @PhilipMcHugh_IE

12/07/2019 at 06:06PM