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):
15
#1321 - Adrian Negreanu / @groleo

02/14/2014 at 12:07PM

15
#1322 - Ben Blaxill / @BenBlaxill

02/15/2014 at 04:34AM

15
#1323 - Jean / @ygu0_0

02/16/2014 at 12:52AM

15
#1324 - Pierre Laporte / @pingtimeout

02/16/2014 at 09:44AM

15
#1325 - Kai Leddy / @FrogInABoxx

02/20/2014 at 10:39AM

15
#1326 - フミ ハシ / @fumi_hs

02/20/2014 at 02:07PM

15
#1327 - Ben Lambeth / @azy2_ben

02/23/2014 at 06:19AM

15
#1328 - 伊藤想 / @itoso_jp

02/23/2014 at 10:53AM

15
#1329 - ney_lemke / @ney_lemke

02/24/2014 at 01:36AM

15
#1330 - Hugh barrigan / @nagirrab

02/25/2014 at 10:08PM

15
#1331 - Jason Bruce / @jbrucenet

02/28/2014 at 06:58PM

15
#1332 - Philiphone / @Philiphone

03/01/2014 at 10:03AM

15
#1333 - Roman Reithmayer / @sharenz0

03/03/2014 at 08:35AM

15
#1334 - Erim Secla / @Alcesmire

03/04/2014 at 04:49PM

15
#1335 - Hannes Remahl / @hannesr

03/13/2014 at 02:04AM

15
#1336 - shinohara / @asua

03/18/2014 at 01:53PM

15
#1337 - G / @drdevil44

03/22/2014 at 07:34PM

15
#1338 - Brandor / @Brandombot

03/25/2014 at 06:58AM

15
#1339 - Patrick Oscity / @der_padde

03/26/2014 at 12:26PM

15
#1340 - John Stallings / @jstallings

03/27/2014 at 03:41PM

15
#1341 - Jeff / @just_geophree

03/29/2014 at 01:54AM

15
#1342 - Nabi Studios / @Toribash

03/29/2014 at 02:27PM

15
#1343 - Amit Verma / @amitv12

03/29/2014 at 08:28PM

15
#1344 - David Goonja / @davidgoonja

04/02/2014 at 07:57AM

15
#1345 - Bob Zingerman / @BobZingerman

04/08/2014 at 03:28AM

15
#1346 - ZorgroZ / @ZorgroZ

04/10/2014 at 09:44PM

15
#1347 - zhuochun / @zhuochun

04/13/2014 at 03:46AM

15
#1348 - Jon Raphaelson / @lygaret

04/16/2014 at 03:08PM

15
#1349 - Shefaet / @shefaet

04/18/2014 at 11:56AM

15
#1350 - george.li / @goblin_george

04/19/2014 at 01:04PM