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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
16
#2101 - onthos / @onthos_

04/25/2014 at 04:07AM

16
#2102 - 土ヤ / @ttsuchiya

04/25/2014 at 06:05AM

16
#2103 - Siah / @hydrospell

04/25/2014 at 05:36PM

16
#2104 - Carlos Hernando / @chernando

04/26/2014 at 06:08PM

16
#2105 - Bryan McKelvey / @bryanmckelvey

04/28/2014 at 12:29AM

16
#2106 - Beau Ginbey / @bginbey

04/28/2014 at 02:48PM

16
#2107 - tork poter / @torkpoter1

04/28/2014 at 05:15PM

16
#2108 - freehaha / @freehaha

04/29/2014 at 09:05AM

16
#2109 - Martin Barney / @MartinBarney

05/05/2014 at 03:41AM

16
#2110 - 3X4n5 / @3X4n5

05/05/2014 at 02:42PM

16
#2111 - Tom Gilligan / @sargegood

05/05/2014 at 09:16PM

16
#2112 - CJ Avilla / @cjav_dev

05/10/2014 at 03:24AM

16
#2113 - Matt Walker / @_walkermatt

05/10/2014 at 07:57PM

16
#2114 - Nathan Seither / @NathanSeither

05/13/2014 at 05:45AM

16
#2115 - Pedro Franceschi / @pedroh96

05/13/2014 at 09:47PM

16
#2116 - Alex Bishop / @AlexJBishop

05/15/2014 at 03:44PM

16
#2117 - Drew DeVault / @sircmpwn

05/19/2014 at 06:40PM

16
#2118 - BJ Terry / @ThatBJTerry

05/20/2014 at 08:53AM

16
#2119 - Ilya Strukov / @i1ey

05/23/2014 at 11:50AM

16
#2120 - wes / @_weslly

05/27/2014 at 06:20PM

16
#2121 - shhittbrick / @shhittbrick

06/01/2014 at 01:16AM

16
#2122 - Jake Eaton / @Jake__Eaton

06/01/2014 at 04:56AM

16
#2123 - Subhi Dweik / @SubhiDweik

06/02/2014 at 10:54PM

16
#2124 - Seongho Kang / @upgradeksh

06/05/2014 at 03:57AM

16
#2125 - heron bird / @urzonn1

06/07/2014 at 03:21AM

16
#2126 - Jonathan C. Dietrich / @jcdietrich

06/11/2014 at 07:25PM

16
#2127 - Pawel Ceranka / @pawelceranka

06/24/2014 at 07:25PM

16
#2128 - ondrejsimek / @ondrejsimek

06/25/2014 at 05:54PM

16
#2129 - Tim Vim / @vim_tim

07/01/2014 at 09:33AM

16
#2130 - Juan Luis / @rufianw

07/03/2014 at 11:20AM