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 5192f96ad8df110002000002

Words in parens

We should all ace this, right?

Start file
one two
three
End file
(one) (two)
(three)

View Diff

1,2c1,2
< one two
< three
---
> (one) (two)
> (three)

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 3904 remaining solutions by signing in and submitting your own entry
#3905 velina v veleva / @vveleva - Score: 155 - 04/23/15 @ 16:55
::%s/\(\a*\)/(&)/g<CR>ZZ<C-A><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><BS><CR><CR>%s/\(\w*\)/(\1)/g<CR>ZZ/<Esc><Esc>u<Esc>/<BS>:%s/\(\w*\)/(\1)/g<CR>ZZ<CR>:%s/\(\w*\)/(\1)/g<CR>ZZ<Left><Left><Right><Right><Right><BS><BS><BS><BS><BS><BS><CR><Esc>:w<CR><Esc>:wq<CR>

0 comments


Created by: @udioica

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#1111 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/04/2020 at 01:00PM

14
#1112 - Er St / @ErSt46286501

10/09/2020 at 09:27AM

14
#1113 - noam teyssier / @noamteyssier

10/15/2020 at 03:41AM

14
#1114 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 04:59PM

14
#1115 - MySelf / @okmslf

10/17/2020 at 06:03PM

14
#1116 - Muradil / @Muradil71938308

10/21/2020 at 05:39PM

14
#1117 - Caio Alonso / @caioalon

11/04/2020 at 02:07AM

14
#1118 - tehnomaag / @tehnomaag

11/04/2020 at 11:11AM

14
#1119 - g̵̨̛̺̝̮̋͆̅͝r̶̦͗̐̓̉a̵͉͋̎c̵̺͉̉͝e̴͙̘͎͚̹̳͛̀͂͆̂ / @___grce

11/07/2020 at 11:58PM

14
#1120 - Andreas Siegrist / @andreaszwei

11/14/2020 at 11:06PM

14
#1121 - David Kutschke / @D4KU_

11/15/2020 at 11:32AM

14
#1122 - MrRubiksSC / @RubiksSc

11/25/2020 at 09:56PM

14
#1123 - hepebexè / @hepebexe

11/26/2020 at 09:38PM

14
#1124 - James Lowenthal / @JamesAnthonyLow

11/27/2020 at 09:58PM

14
#1125 - Ihor / @Ihor96382508

11/29/2020 at 10:03AM

14
#1126 - Hugh / @haquaman

11/30/2020 at 10:04PM

14
#1127 - Neverlandrunner / @neverlandrunner

12/06/2020 at 03:30AM

14
#1128 - — / @Cenarius

12/07/2020 at 02:40AM

14
#1129 - Ryan Way / @RyanWay16

12/12/2020 at 06:12AM

14
#1130 - Ian Burgan / @IanBurgan

12/14/2020 at 03:40PM

14
#1131 - Bots Be Postin' / @TPRolling

12/16/2020 at 08:34PM

14
#1132 - Bob / @Bob25621943

12/17/2020 at 05:00PM

14
#1133 - pherapont / @pherapont1

12/18/2020 at 05:41AM

14
#1134 - justinhj / @justinhj

12/31/2020 at 03:43AM

14
#1135 - Jung Yeon Park / @park_jungy

01/01/2021 at 07:07PM

14
#1136 - Trong Kha Nguyen / @__ngtrongkha

01/04/2021 at 06:45AM

14
#1137 - Nicolas Pagny / @NicolasPagny

01/08/2021 at 10:34AM

14
#1138 - Austin Scott / @theMetgame

01/11/2021 at 02:38AM

14
#1139 - Adam Katz / @AdamKat40357638

01/11/2021 at 04:20PM

14
#1140 - Ravi S Sinha / @ambidextrousTx

01/12/2021 at 01:08AM