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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#1081 - Alexander / @Alexand64026860

03/25/2020 at 02:35PM

14
#1082 - Mats Faugli / @matsfaugli

03/29/2020 at 10:01PM

14
#1083 - relastle / @relastle

03/30/2020 at 04:24AM

14
#1084 - Rodrigo V. Lopes / @rodvlopes

04/01/2020 at 09:07PM

14
#1085 - edvrds / @edvrds

04/14/2020 at 09:33AM

14
#1086 - Moatvald / @moatvald

04/17/2020 at 07:14AM

14
#1087 - スペー / @homander2017

04/18/2020 at 04:52AM

14
#1088 - kashikasitaro / @kashikasitaro

04/18/2020 at 06:04AM

14
#1089 - cyndiii-development / @cyndiiidevelop1

04/18/2020 at 06:28AM

14
#1090 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:20AM

14
#1091 - Toby de Havilland / @tobydeh

04/19/2020 at 09:57AM

14
#1092 - sherman / @sherman37029653

04/25/2020 at 01:50AM

14
#1093 - John Sumner / @rjsumner

04/29/2020 at 03:58PM

14
#1094 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 07:45AM

14
#1095 - bladehaze / @bladehaze

05/04/2020 at 01:45AM

14
#1096 - Anay Karnik / @anay_karnik

05/08/2020 at 01:30PM

14
#1097 - Matt DB / @MattDB12

05/11/2020 at 08:39PM

14
#1098 - River Jiang / @riverjiang

05/13/2020 at 04:00AM

14
#1099 - whale / @Hari84444713

05/16/2020 at 08:22PM

14
#1100 - garry quested / @GQuested

05/24/2020 at 09:48AM

14
#1101 - 于吉星 / @fishermryn

05/25/2020 at 08:37AM

14
#1102 - loupiot.veloce / @LoupiotVeloce

05/27/2020 at 02:28PM

14
#1103 - Dirty Harry / @TateDirty

05/30/2020 at 01:55PM

14
#1104 - Bob / @Bob37174065

06/01/2020 at 03:34PM

14
#1105 - nbspAD / @AdNbsp

06/01/2020 at 04:10PM

14
#1106 - betmaster / @betmstr

06/09/2020 at 04:08PM

14
#1107 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 11:43AM

14
#1108 - speisz / @speiszc

06/29/2020 at 10:05PM

14
#1109 - Ming Dai / @MingDai2

06/29/2020 at 10:34PM

14
#1110 - 大矢元海 / @008Genkai

07/03/2020 at 08:44PM