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):
10
#121 - Adrien / @beudbeud

08/13/2019 at 02:41PM

10
#122 - Jonathan Eidsness / @jonathaneidsnes

08/14/2019 at 09:03PM

10
#123 - Adam Hartz / @awareofnow

08/21/2019 at 03:42AM

10
#124 - Aioriya / @AioriyaDonk

08/26/2019 at 04:15AM

10
#125 - Lukas Schmidt / @TheRealGeStar

08/28/2019 at 11:39AM

10
#126 - Nicolas / @martinni39

09/04/2019 at 04:08PM

10
#127 - Eric Banisadr / @EBanisadr

09/06/2019 at 04:19PM

10
#128 - Jakub Jindra / @jakub_jindra

09/08/2019 at 10:01AM

10
#129 - Ariel Miculas / @ArielMiculas

09/19/2019 at 12:43PM

10
#130 - Baine Wedlock / @BaineWedlock

09/20/2019 at 10:18AM

10
#131 - ErQ325 / @EQ325

10/13/2019 at 11:05AM

10
#132 - Mario Olofo / @mario_olofo

10/21/2019 at 08:50PM

10
#133 - fewfold / @fewfold

11/06/2019 at 03:52AM

10
#134 - HypoTech / @Obongoetco

12/07/2019 at 11:20PM

10
#135 - samuel norbury / @SnNorbury

12/30/2019 at 08:05PM

10
#136 - Jason Neylon / @jasonneylon

02/26/2020 at 07:30PM

10
#137 - countime / @countime1

03/13/2020 at 08:25AM

10
#138 - Vinay Sharma / @VinaySh63956554

08/14/2020 at 03:04PM

10
#139 - Rafal C. / @RafalC37709324

11/16/2020 at 09:37PM

10
#140 - 김범준 / @kmbmjn

02/17/2021 at 05:57AM

10
#141 - Michel Viktor / @tomkpz

09/12/2021 at 02:12PM

10
#142 - John Xu / @xzzhiao

05/04/2022 at 07:52PM

10
#143 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 03:10PM

10
#144 - James / @Dronak

11/10/2022 at 07:19PM

10
#145 - steve / @steve35773420

11/27/2022 at 08:02PM

10
#146 - 0xf00ff00f / @0xf00ff00f

12/15/2022 at 03:23PM

10
#147 - e_e / @eleloi

02/14/2023 at 10:46PM

10
#148 - RosaTryp / @RosaTryp

03/13/2023 at 08:14PM

10
#149 - Olivier Bégassat / @zk_evm

06/12/2023 at 01:50AM

10
#150 - Alexander Groth / @alexander-walkingtreegames

05/22/2024 at 11:38AM