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
#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 - Dan / @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💾 / @markomannux

08/27/2019 at 12:08PM

9
#49 - Iggy / @iggredible

09/12/2019 at 03:34AM

9
#50 - Abnermtj / @Abnerjr19

09/28/2019 at 03:29PM

9
#51 - Miko / @_m_ik_o_

09/29/2019 at 06:32PM

9
#52 - Viktor Styrud / @ViktorStyrud

10/04/2019 at 11:47AM

9
#53 - せいほう / @FICSQF

10/07/2019 at 07:16AM

9
#54 - Jonathan Medwig / @jmedwig

10/07/2019 at 06:32PM

9
#55 - KlondikeBaer / @BaerKlondike

10/13/2019 at 03:23PM

9
#56 - vimgolfer / @vimgolfer7

10/22/2019 at 01:30AM

9
#57 - Scott Taylor / @scott11X8

10/25/2019 at 12:05AM

9
#58 - Ivan Volosyuk / @IvanVolosyuk

10/30/2019 at 01:06PM

9
#59 - Lory / @Lory46845742

11/08/2019 at 12:39PM

9
#60 - Melvin Cheung / @MelvinCheung

11/08/2019 at 05:55PM